sakura fan
/
SakuraIO_Standard
example for SAKURA Internet IoT Beta Communication Module
Revision 1:d00e4ddb4c38, committed 2016-11-18
- Comitter:
- sakurafan
- Date:
- Fri Nov 18 01:39:09 2016 +0000
- Parent:
- 0:7b577f301257
- Commit message:
- fix KL25Z spi
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7b577f301257 -r d00e4ddb4c38 main.cpp --- a/main.cpp Mon Nov 14 00:51:56 2016 +0000 +++ b/main.cpp Fri Nov 18 01:39:09 2016 +0000 @@ -2,6 +2,7 @@ #include "SakuraIO.h" #if defined(TARGET_LPC176X) +DigitalOut myled(LED1); SakuraIO_I2C sakuraio(p28, p27); // sda, scl (mbed LPC1768) /* or @@ -14,10 +15,14 @@ SakuraIO_SPI sakuraio(spi, p8); // spi, cs */ #elif defined(TARGET_KL25Z) +DigitalOut myled(LED2); SakuraIO_I2C sakuraio(PTE0, PTE1); // sda, scl (FRDM KL25Z) +/* + or +SakuraIO_SPI sakuraio(PTD2, PTD3, PTD1, PTD0); // mosi, miso, sclk, cs +*/ #endif -DigitalOut myled(LED1); Serial pc(USBTX, USBRX); int main () {