Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 3,5c3
- < *
- < * ATtiny85 @ 1MHz
- < * lfuse: 0x62 hfuse: 0xDD efuse: 0x01
- ---
- > * C
- 13a12
- >
- 32a32
- >
- 39a40
- >
- 56c57
- < while( cnt-- > 0 ) _delay_ms( 1 );
- ---
- > while(cnt-->0) _delay_ms(1);
- 81c82
- < DDRB = ( 1 << whiteLED ); // Set pins as outputs
- ---
- > DDRB =( 1 << whiteLED ); // Set pins as outputs
- 84c85,86
- < PORTB = ( 1 << reedSwitch ); // włącza PullUp na WEJŚCIU
- ---
- > PORTB |= ( 1 << reedSwitch ); // włącza PullUp na WEJŚCIU
- >
- 88a91
- >
- 101c104
- < if (MCUSR & 0x3 ) // BORF
- ---
- > if (MCUSR & 0x3 ) // BORF ??? BOD ?
- 111a115
- >
- 123,126c127,129
- <
- < if ( blinkCounter % 6 == 0 ) PORTB &= ~( ( 1 << redLED ) |
- < ( 1 << blueLED ) );
- < if ( blinkCounter % 6 == 3 )
- ---
- >
- > if ( blinkCounter % 6 == 0 ) PORTB &= ~( ( 1 << redLED ) | ( 1 << blueLED ) | ( 1 << whiteLED ) );
- > if ( blinkCounter % 6 == 3 )
- 128,129c131,132
- < if ( blinkCounter < 60 ) PORTB |= ( 1 << redLED );
- < else PORTB |= ( 1 << blueLED );
- ---
- > if ( blinkCounter < 60 ) PORTB |= ( 1 << redLED );
- > else PORTB |= ( 1 << blueLED );
- 160c163
- <
- ---
- > PORTB |= ( 1 << whiteLED );
- 164c167
- < for ( int i = 1; i < 300; i++ )
- ---
- > for ( int i = 1; i < stepsUp + stepsDown; i++ )
- 166,170c169
- < PORTB |= ( 1 << whiteLED );
- < Delay_ms( 5 );
- < PORTB &= ~( 1 << whiteLED );
- < Delay_ms( 5 );
- <
- ---
- > Delay_ms( sleep );
- 198a198
- >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement