/* wtf
*
* Created: 12.11.2015 12:04:39
* Author: d14poruban
*/
#include
#define F_CPU 10000000UL
#include
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;}