![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
MCP3208 with SWSPI to support variable SPI bit lengths
Dependencies: MCP3208_STM32_16bit_HAX mbed
Fork of MCP3208_LPC1114 by
Diff: main.cpp
- Revision:
- 10:a22ee39e2282
- Parent:
- 8:4c941f8c6d73
- Child:
- 11:c42ced58244d
diff -r cb873bc61a3f -r a22ee39e2282 main.cpp --- a/main.cpp Thu Apr 06 19:27:33 2017 +0000 +++ b/main.cpp Thu Apr 06 19:31:47 2017 +0000 @@ -95,7 +95,7 @@ if(tickerActivated == true) { tickerActivated = false; // pc.printf("%s,%s,%s,%s,%s,%s\n\r",datastr0,datastr1,datastr2,datastr3,datastr4,datastr5); - pc.printf("%d,%d,%d,%d,%d,%d\n\r",data0,data1,data2,data3,data4,data5); + pc.printf("%04d,%04d,%04d,%04d,%04d,%04d\n\r",data0,data1,data2,data3,data4,data5); // pc.printf("%d\n\r",SPI1->DR); // pc.printf("%d\n\r",input1.binary(0)); }