diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-12-09 11:48:26 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-12-09 11:48:26 -0500 |
commit | 4a5801bb2ef825f307f39ff0a961b186397da57e (patch) | |
tree | b49f385414152cc3485d2ffc049e651f2a1acc7f | |
parent | f8acf0f54f4e2196b65c29cce8062380609b9b2b (diff) | |
download | kutter-4a5801bb2ef825f307f39ff0a961b186397da57e.tar.gz kutter-4a5801bb2ef825f307f39ff0a961b186397da57e.tar.xz kutter-4a5801bb2ef825f307f39ff0a961b186397da57e.zip |
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 <kevin@koconnor.net>
-rw-r--r-- | klippy/pins.py | 3 |
1 files changed, 2 insertions, 1 deletions
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), |