Restore state of LED at end

This commit is contained in:
Stefan `Sec` Zehl 2011-08-12 20:27:36 +02:00
parent 736959d47c
commit 177acbeffa
1 changed files with 3 additions and 1 deletions

View File

@ -5,9 +5,11 @@
#include "usetable.h"
void ram(void){
char x = gpioGetValue(RB_LED1);
for (int x=0;x<20;x++){
gpioSetValue (RB_LED1, x%2);
delayms(50);
};
gpioSetValue (RB_LED1, 0);
gpioSetValue (RB_LED1, x);
};