Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <avr/io.h>
- #include <avr/interrupt.h>
- void timer1();
- void sleep();
- int main() {
- DDRC = 0xFF;
- PORTC = 0b00000000;
- sei();
- //timer1();
- while(1) {
- PORTC = 0b11111111;
- sleep(50000);
- PORTC = 0b00000000;
- sleep(50000);
- }
- }
- void sleep(long int timems) {
- // warten
- }
- /*void timer1() {
- TCCRA1 = 0;
- }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement