Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * ADC attiny13.c
- *
- * Created: 28.07.2021
- * Author : Admin
- */
- #include <avr/io.h>
- #define F_CPU 1000000UL
- #include <util/delay.h>
- #include <avr/interrupt.h>
- int main (void)
- {
- DDRB = 0b00000110;
- PORTB= 0b11111001;
- while (1)
- {
- PORTB |=(1<<PB0);
- _delay_ms(1000);
- PORTB &=~(1<<PB0);
- _delay_ms(1000);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment