7 segment go brr
This commit is contained in:
parent
21d1da0f03
commit
600de71fd8
20
main.c
20
main.c
|
@ -5,12 +5,22 @@
|
|||
#include <util/delay.h>
|
||||
|
||||
void main() {
|
||||
DDRB = 0b10000000;
|
||||
// DDRB = 0b10000000;
|
||||
//
|
||||
// while(1) {
|
||||
// PORTB = 0b10000000;
|
||||
// _delay_ms(500);
|
||||
// PORTB = 0b00000000;
|
||||
// _delay_ms(500);
|
||||
// }
|
||||
|
||||
DDRF = 0b11111111;
|
||||
PORTF = 0b11111111;
|
||||
|
||||
uint8_t a = 0;
|
||||
|
||||
while(1) {
|
||||
PORTB = 0b10000000;
|
||||
_delay_ms(500);
|
||||
PORTB = 0b00000000;
|
||||
_delay_ms(500);
|
||||
PORTF = a++;
|
||||
_delay_ms(10);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue