From 62117e7ea77bf036e4e08bb02d682311e3c3d401 Mon Sep 17 00:00:00 2001 From: tmk Date: Fri, 25 Apr 2014 15:25:21 +0900 Subject: [PATCH] Change MCU setting to ATmega32U2 --- converter/sun_usb/Makefile | 3 ++- converter/sun_usb/matrix.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/converter/sun_usb/Makefile b/converter/sun_usb/Makefile index 73a83e93..35c4bb12 100644 --- a/converter/sun_usb/Makefile +++ b/converter/sun_usb/Makefile @@ -20,9 +20,10 @@ CONFIG_H = config.h # MCU name, you MUST set this to match the board you are using # type "make clean" after changing this, so all files will be rebuilt #MCU = at90usb162 # Teensy 1.0 -MCU = atmega32u4 # Teensy 2.0 +#MCU = atmega32u4 # Teensy 2.0 #MCU = at90usb646 # Teensy++ 1.0 #MCU = at90usb1286 # Teensy++ 2.0 +MCU = atmega32u2 # Processor frequency. diff --git a/converter/sun_usb/matrix.c b/converter/sun_usb/matrix.c index a61e3a2d..988622bc 100644 --- a/converter/sun_usb/matrix.c +++ b/converter/sun_usb/matrix.c @@ -63,6 +63,8 @@ uint8_t matrix_cols(void) void matrix_init(void) { + DDRD |= (1<<6); + PORTD |= (1<<6); debug_enable = true; serial_init();