From e7adf388bffe1b40ec3b47fc60c3f2dd66e34e45 Mon Sep 17 00:00:00 2001 From: schneider Date: Thu, 7 Jul 2011 18:28:07 +0200 Subject: [PATCH] added a loadable with functions --- firmware/loadable/blinktest2.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 firmware/loadable/blinktest2.c diff --git a/firmware/loadable/blinktest2.c b/firmware/loadable/blinktest2.c new file mode 100644 index 0000000..6b46add --- /dev/null +++ b/firmware/loadable/blinktest2.c @@ -0,0 +1,18 @@ +#include +#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); +} + +