Advertisement
jh_elec

Super Clokk - EEP_Default

Jun 3rd, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. if ( eeprom_read_byte( &eep.byte8[IS_INIT] ) == 0xA3 )
  2. {
  3.     flag.isInit = 1;
  4.     return;
  5. }
  6.    
  7. flag.isInit = 0;
  8.  
  9.  
  10. if ( !flag.isInit )
  11. {
  12.     scroll_display( "Default Werte werden geladen.." , INFO_SCROLL_SPEED );
  13.     for (uint8_t i = 0 ; i < 32 ; i++ )
  14.     {
  15.         putChar( '|' , i );
  16.         _delay_ms(150);
  17.     }
  18.        
  19.     for (uint8_t i = 32 ; i > 0 ; i-- )
  20.     {
  21.         putChar( ' ' , i );
  22.         _delay_ms(50);
  23.     }      
  24.        
  25.     clearDisplay( true , false );
  26.     flag.isInit = 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement