]> jspc29.x-matter.uni-frankfurt.de Git - avr.git/commitdiff
daqi switches a pin
authorJan Michel <j.michel@gsi.de>
Mon, 3 Aug 2015 16:21:16 +0000 (18:21 +0200)
committerJan Michel <j.michel@gsi.de>
Mon, 3 Aug 2015 16:21:16 +0000 (18:21 +0200)
atmega32u4/daqi/daqi.c

index 8150701c4c2672e5fcb7068eb94f7fd9bb5a916d..2b8b6f7b9ae65bd65d8dff207790729dea60e95f 100644 (file)
@@ -28,6 +28,7 @@ void init(void) {
 void led_update(void) {
   uint8_t col[3];
   uint8_t cc;
+  DDRD |= (1<<PD5);
   cli();
   for(uint8_t k = 0; k<NUM_LEDS;k++) {
     col[0] = green[k];
@@ -52,6 +53,7 @@ void led_update(void) {
       }  
     }  
   sei();
+  DDRD &= ~(1<<PD5);
   }
 
 uint8_t hex2int(char c) {