aboutsummaryrefslogtreecommitdiff
path: root/examples/blink
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blink')
-rw-r--r--examples/blink/blink.c6
-rw-r--r--examples/blink/build/config.h1
2 files changed, 4 insertions, 3 deletions
diff --git a/examples/blink/blink.c b/examples/blink/blink.c
index 8386d4b..6a81aee 100644
--- a/examples/blink/blink.c
+++ b/examples/blink/blink.c
@@ -3,12 +3,12 @@
#include <ioport.h>
int main() {
- io_setout(IO_B3);
+ io_setout(IO_B0);
while (1) {
- io_hight(IO_B3);
+ io_hight(IO_B0);
_delay_ms(500);
- io_low(IO_B3);
+ io_low(IO_B0);
_delay_ms(500);
}
}
diff --git a/examples/blink/build/config.h b/examples/blink/build/config.h
new file mode 100644
index 0000000..5fff870
--- /dev/null
+++ b/examples/blink/build/config.h
@@ -0,0 +1 @@
+#define CONFIG_IOPORTS y