From 4a5801bb2ef825f307f39ff0a961b186397da57e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 9 Dec 2017 11:48:26 -0500 Subject: [PATCH] pins: Fix atmega168/328 mappings The atmega168 and atmega328 need to define PE0 and PE1 in order to support the 2 extra analog pins. Also, support the arduino mappings for the atmega328. Signed-off-by: Kevin O'Connor --- klippy/pins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/klippy/pins.py b/klippy/pins.py index 327e1fe2..c7dcb868 100644 --- a/klippy/pins.py +++ b/klippy/pins.py @@ -31,7 +31,7 @@ def beaglebone_pins(): return gpios MCU_PINS = { - "atmega168": port_pins(4), "atmega328": port_pins(4), + "atmega168": port_pins(5), "atmega328": port_pins(5), "atmega644p": port_pins(4), "atmega1284p": port_pins(4), "at90usb1286": port_pins(6), "atmega1280": port_pins(12), "atmega2560": port_pins(12), @@ -95,6 +95,7 @@ Arduino_Due_analog = [ Arduino_from_mcu = { "atmega168": (Arduino_standard, Arduino_analog_standard), + "atmega328": (Arduino_standard, Arduino_analog_standard), "atmega644p": (Sanguino, Sanguino_analog), "atmega1280": (Arduino_mega, Arduino_analog_mega), "atmega2560": (Arduino_mega, Arduino_analog_mega),