New board

This commit is contained in:
William Toohey
2016-12-17 03:31:37 +10:00
parent 4141f5f008
commit 92a428a5ed
3 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -15,9 +15,12 @@
#define LED_DDR DDRB
#define LED_MASK (0b111111 << 2)
#define UPDATE_HZ 50
#define UPDATE_HZ 100
// prescaler is the div8
#define TIMER_COMPARE ((F_CPU / 8 / UPDATE_HZ / GND_COUNT / BRIGHTNESS_LEVELS)-1)
#if TIMER_COMPARE > 255
#error timer compare too large for timer register
#endif
#define R 2
#define G 1
+1 -1
View File
@@ -14,7 +14,7 @@
MCU = atmega16u2
ARCH = AVR8
BOARD = USER
F_CPU = 8000000
F_CPU = 16000000
F_USB = $(F_CPU)
OPTIMIZATION = s
TARGET = Keyboard