bosko lekovic
/
MiWi_spi
prva verzija, poslednji bajt je sporan
Revision 3:3b0754ed31e9, committed 2020-07-28
- Comitter:
- bosko001
- Date:
- Tue Jul 28 17:17:51 2020 +0200
- Parent:
- 2:190bae43eca9
- Commit message:
- funkcionalan
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Jul 16 22:14:03 2020 +0200 +++ b/main.cpp Tue Jul 28 17:17:51 2020 +0200 @@ -16,6 +16,9 @@ DigitalIn b2(SW2); +// DigitalOut led(LED1,1); + DigitalOut ledB(LED3,1); +// DigitalOut ledG(LED2,1); char tx_niz[] = { 7,0,1,2,3, 4, 5 , 6, 7, 8}; @@ -33,9 +36,6 @@ inic_MiWi( ); -// DigitalOut led(LED1,1); - DigitalOut ledB(LED3,1); -// DigitalOut ledG(LED2,1); @@ -54,7 +54,7 @@ { b = b2; if( b ) {/*set_mode( 1 );*/ ledB = 1;} - else { ledB = 0; txMiWi( tx_niz ); } + else { /* ledB = 0; */txMiWi( tx_niz ); } } thread_sleep_for(BLINKING_RATE_MS);