Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* wtf
- *
- * Created: 12.11.2015 12:04:39
- * Author: d14poruban
- */
- #include <avr/io.h>
- #define F_CPU 10000000UL
- #include <util/delay.h>
- int main(void)
- {DDRC=0x00;
- DDRB=0xFF;
- while (1)
- {int teplota=PINC;
- if (teplota<=7)
- {PORTB=0b00000010;
- _delay_ms(3);
- PORTB=0b00000000;
- _delay_ms(4);}
- else if (teplota>=31)
- {PORTB=0b00000100;
- _delay_ms(5);
- PORTB=0b00000000;
- _delay_ms(10);}}
- return 0;}
Add Comment
Please, Sign In to add comment