I2C/SPI/GPIO example for MAX32625PICO board
Dependencies: SerialInterface USBDevice max32625pico
Fork of PICO_USB_I2C_SPI by
Diff: main.cpp
- Revision:
- 6:bff339370df6
- Parent:
- 5:2436ae0a9eb1
- Child:
- 7:5de026dd3a82
--- a/main.cpp Thu Dec 08 21:10:46 2016 +0000 +++ b/main.cpp Thu Dec 08 21:44:01 2016 +0000 @@ -15,7 +15,8 @@ // Serial Interfaces I2C i2c(P3_4, P3_5); -SPI spi(P5_1, P5_2, P5_0, P5_3); +SPI spi(P5_1, P5_2, P5_0); +DigitalOut ssel(P5_3); // Threads Thread threadUSB; @@ -105,7 +106,7 @@ pegasus.init(); // Serial Interface Setup - serInt.init(&i2c, &spi); + serInt.init(&i2c, &spi, &ssel); rLED = LED_OFF;