bosko lekovic
/
IO_board_K22
K22 processor
Diff: main.cpp
- Revision:
- 2:b188a511819f
- Parent:
- 1:1052d6227111
- Child:
- 3:71278c5b7c67
--- a/main.cpp Thu Aug 13 17:30:08 2020 +0000 +++ b/main.cpp Sat Aug 15 19:55:02 2020 +0000 @@ -30,7 +30,6 @@ inic_IOspi( ); - DigitalOut led(LED1,1); DigitalOut ledB(LED3,1); int b = b2; @@ -45,7 +44,7 @@ { b = b2; if( b ) { ledB = 1;} - else { ledB = 0; static char c = 0; /*writeIOspiData( 0xa0, c++ );*/ char *rx = transIOspiData( 1, 0xa, c++ ); for(int i= 0; i<8; i++) printf(" %x", rx[i]);printf(" \n\r"); } + else { ledB = 0; static char c = 0; /*writeIOspiData( 0xa0, c++ );*/ transIOspiData( 1, 0xa, c++ ); } } }