bosko lekovic
/
IO_board_K22
K22 processor
Diff: SPIledovi/LedLight.cpp
- Revision:
- 18:6196688e2a94
- Parent:
- 12:ea2256d6c725
diff -r f99cdfd01d4e -r 6196688e2a94 SPIledovi/LedLight.cpp --- a/SPIledovi/LedLight.cpp Sat May 15 13:59:57 2021 +0200 +++ b/SPIledovi/LedLight.cpp Sun May 16 22:01:47 2021 +0200 @@ -11,8 +11,8 @@ C_spi::C_spi( PinName mosi, PinName miso, PinName sclk, PinName pin_csdata ): SPI( mosi, miso, sclk) //SPI( PTD2, PTD3, PTD1 ) { p_csdata = new DigitalOut( pin_csdata,1); - format( 16, 0); - frequency(10000000); + format( 16, 0); + frequency(10000000); } unsigned short C_spi::transfer( unsigned short tx ) { @@ -107,14 +107,14 @@ { static char j=1; - set_led( 1, (E_ledColor)( (get_ledLightTickPatern(1) & j) ? ((get_ledLightColor(1))) : 0 ) ); - set_led( 2, (E_ledColor)( (get_ledLightTickPatern(2) & j) ? ((get_ledLightColor(2))) : 0 ) ); - set_led( 3, (E_ledColor)( (get_ledLightTickPatern(3) & j) ? ((get_ledLightColor(3))) : 0 ) ); - set_led( 4, (E_ledColor)( (get_ledLightTickPatern(4) & j) ? ((get_ledLightColor(4))) : 0 ) ); - set_led( 5, (E_ledColor)( (get_ledLightTickPatern(5) & j) ? ((get_ledLightColor(5))) : 0 ) ); - set_led( 6, (E_ledColor)( (get_ledLightTickPatern(6) & j) ? ((get_ledLightColor(6))) : 0 ) ); + set_led( 1, (E_ledColor)( (get_ledLightTickPatern(1) & j) ? ((get_ledLightColor(1))) : 0 ) ); + set_led( 2, (E_ledColor)( (get_ledLightTickPatern(2) & j) ? ((get_ledLightColor(2))) : 0 ) ); + set_led( 3, (E_ledColor)( (get_ledLightTickPatern(3) & j) ? ((get_ledLightColor(3))) : 0 ) ); + set_led( 4, (E_ledColor)( (get_ledLightTickPatern(4) & j) ? ((get_ledLightColor(4))) : 0 ) ); + set_led( 5, (E_ledColor)( (get_ledLightTickPatern(5) & j) ? ((get_ledLightColor(5))) : 0 ) ); + set_led( 6, (E_ledColor)( (get_ledLightTickPatern(6) & j) ? ((get_ledLightColor(6))) : 0 ) ); - do_Sifter(); + do_Sifter(); if( !(j<<=1) ) j = 1;