Restore state of LED at end
This commit is contained in:
parent
736959d47c
commit
177acbeffa
|
@ -5,9 +5,11 @@
|
||||||
#include "usetable.h"
|
#include "usetable.h"
|
||||||
|
|
||||||
void ram(void){
|
void ram(void){
|
||||||
|
char x = gpioGetValue(RB_LED1);
|
||||||
|
|
||||||
for (int x=0;x<20;x++){
|
for (int x=0;x<20;x++){
|
||||||
gpioSetValue (RB_LED1, x%2);
|
gpioSetValue (RB_LED1, x%2);
|
||||||
delayms(50);
|
delayms(50);
|
||||||
};
|
};
|
||||||
gpioSetValue (RB_LED1, 0);
|
gpioSetValue (RB_LED1, x);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue