Advertisement
wariat

Untitled

Aug 21st, 2012
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.53 KB | None | 0 0
  1. 3,5c3
  2. <  *
  3. <  * ATtiny85 @ 1MHz
  4. <  * lfuse: 0x62 hfuse: 0xDD efuse: 0x01
  5. ---
  6. >  * C
  7. 13a12
  8. >
  9. 32a32
  10. >
  11. 39a40
  12. >
  13. 56c57
  14. <   while( cnt-- > 0 ) _delay_ms( 1 );
  15. ---
  16. >   while(cnt-->0) _delay_ms(1);
  17. 81c82
  18. <     DDRB = ( 1 << whiteLED ); // Set pins as outputs
  19. ---
  20. >     DDRB =( 1 << whiteLED ); // Set pins as outputs
  21. 84c85,86
  22. <   PORTB = ( 1 << reedSwitch ); // włącza PullUp na WEJŚCIU
  23. ---
  24. >   PORTB |= ( 1 << reedSwitch ); // włącza PullUp na WEJŚCIU
  25. >  
  26. 88a91
  27. >
  28. 101c104
  29. <   if (MCUSR & 0x3 ) // BORF
  30. ---
  31. >   if (MCUSR & 0x3 ) // BORF ??? BOD ?
  32. 111a115
  33. >
  34. 123,126c127,129
  35. <
  36. <   if  ( blinkCounter % 6 == 0 ) PORTB &= ~( ( 1 << redLED  ) |
  37. <                                             ( 1 << blueLED ) );
  38. <   if  ( blinkCounter % 6 == 3 )
  39. ---
  40. >    
  41. >   if      ( blinkCounter % 6 == 0 )  PORTB &= ~( ( 1 << redLED ) | ( 1 << blueLED ) | ( 1 << whiteLED ) );
  42. >   if      ( blinkCounter % 6 == 3 )
  43. 128,129c131,132
  44. <     if ( blinkCounter < 60 )    PORTB |=    ( 1 << redLED );
  45. <     else                        PORTB |=    ( 1 << blueLED );
  46. ---
  47. >     if ( blinkCounter < 60 )      PORTB |= ( 1 << redLED );
  48. >     else                          PORTB |= ( 1 << blueLED );
  49. 160c163
  50. <  
  51. ---
  52. >   PORTB |= ( 1 << whiteLED );
  53. 164c167
  54. <     for ( int i = 1; i < 300; i++ )
  55. ---
  56. >     for ( int i = 1; i < stepsUp + stepsDown; i++ )
  57. 166,170c169
  58. <       PORTB |=  ( 1 << whiteLED );
  59. <       Delay_ms( 5 );
  60. <       PORTB &= ~( 1 << whiteLED );
  61. <       Delay_ms( 5 );
  62. <
  63. ---
  64. >       Delay_ms( sleep );
  65. 198a198
  66. >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement