X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=gpio.c;h=2ee32109d754360434afc6ec0ed3d5c3a8269592;hb=404cf862f8c6bb413580dce16d0a0bdab1037525;hp=e0f58b9647c63b597760b71b18e9943d5ff56a69;hpb=355758d26d0bd1cfffd97b115673522e63b42820;p=bike-lights.git diff --git a/gpio.c b/gpio.c index e0f58b9..2ee3210 100644 --- a/gpio.c +++ b/gpio.c @@ -6,6 +6,8 @@ void gpio_init() { DDRB |= _BV(PB2) | _BV(PB4); PORTB &=~ (_BV(PB2) | _BV(PB4)); + + gpio_set(GPIO_LED2, 1); } void gpio_set(unsigned char n, unsigned char on)