summaryrefslogtreecommitdiff
path: root/keyboard/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/keyboard.c')
-rw-r--r--keyboard/keyboard.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/keyboard/keyboard.c b/keyboard/keyboard.c
new file mode 100644
index 0000000..dbba981
--- /dev/null
+++ b/keyboard/keyboard.c
@@ -0,0 +1,14 @@
+#include <avr/eeprom.h>
+#include <avr/io.h>
+#define F_CPU 16500000L // 16.5 MHZ
+#include <util/delay.h>
+
+int main() {
+ DDRB |= _BV(DDB1);
+ while (1) {
+ PORTB ^= _BV(PB1);
+ _delay_ms(100);
+ PORTB ^= _BV(PB1);
+ _delay_ms(900);
+ }
+}