#include #include #include #include #include #include void vilkumine(void){ DDRB=0x80; while(true){ PORTB ^= 0x80; hw_delay_ms(1500); } } pin debug_led=PIN(B, 7); pin led_red=PIN(C, 5); pin pnupp=PIN(C, 2); void muuda(){ pin_setup_output(debug_led); pin_clear(debug_led); // pin_set(debug_led); } void varvid(){ pin_setup_output(led_red); pin_clear(led_red); } void nupud(){ pin_setup_output(led_red); pin_setup_input(pnupp); while(true){ pin_set_to(led_red, pin_get_value(pnupp)); } } void naidik(){ //segment_display_init(); //segment_display_write(3); } void tekstiekraan(){ //lcd_alpha_init(LCD_ALPHA_DISP_ON); /* lcd_alpha_goto_xy(1, 1); lcd_alpha_write_string("Tere"); */ } int main(void){ //vilkumine(); //muuda(); //varvid(); //naidik(); //nupud(); tekstiekraan(); }