added a loadable with functions
This commit is contained in:
parent
a534cb9215
commit
e7adf388bf
|
@ -0,0 +1,18 @@
|
|||
#include <sysinit.h>
|
||||
#include "basic/basic.h"
|
||||
void ram(void);
|
||||
void setLED(int i);
|
||||
|
||||
void ram(void){
|
||||
for (int x=0;x<20;x++){
|
||||
setLED(x);
|
||||
delayms(50);
|
||||
};
|
||||
};
|
||||
|
||||
void setLED(int i)
|
||||
{
|
||||
gpioSetValue (RB_LED1, i%2);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue