X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=blobdiff_plain;f=gpio.c;h=2ee32109d754360434afc6ec0ed3d5c3a8269592;hp=e0f58b9647c63b597760b71b18e9943d5ff56a69;hb=2cbbe3d3f5c9499afa13a65a416f3d836c84fbfc;hpb=2f02dcff5103d6466523678a8fafb385530406d2 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)