summaryrefslogtreecommitdiffstats
path: root/base.c
diff options
context:
space:
mode:
authorTobias Wiese <tobias@tobiaswiese.com>2021-05-03 23:58:30 +0200
committerTobias Wiese <tobias@tobiaswiese.com>2021-07-22 02:26:29 +0200
commit68b5f182af145fdd9e62c9dde3eedcb9108f5ba4 (patch)
tree67c0011276b30f8f785b934be44044935f78bd73 /base.c
Initial commitHEADmaster
Signed-off-by: Tobias Wiese <tobias@tobiaswiese.com>
Diffstat (limited to 'base.c')
-rw-r--r--base.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/base.c b/base.c
new file mode 100644
index 0000000..5ebe2a7
--- /dev/null
+++ b/base.c
@@ -0,0 +1,20 @@
+#include <avr/io.h>
+#include "libleds.h"
+
+static uint16_t const STRIP_LENGTH = 8*32;
+static char const PORT = 0;
+static char const PINS = 1<<7;
+
+void led_main();
+
+void init()
+{
+ DDRD = 255;
+}
+
+int main()
+{
+ init();
+ led_main();
+ return 0;
+}