Skip to content

Commit 0721c72

Browse files
lumbricwerkfreiraum
authored andcommitted
Use Arduino mega2560 instead of Leonardo
In Makefile and upload.sh, can be still used with Arduino IDE and Leonardo.
1 parent a29a5ca commit 0721c72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $(info Using ARDUINO_DIR=$(ARDUINO_DIR))
55
build:
66
mkdir -p arduino-builder
77
$(ARDUINO_DIR)/arduino-builder -libraries $(ARDUINO_DIR)/libraries -hardware $(ARDUINO_DIR)/hardware \
8-
-tools $(ARDUINO_DIR)/hardware/tools -tools $(ARDUINO_DIR)/tools-builder -fqbn arduino:avr:leonardo \
8+
-tools $(ARDUINO_DIR)/hardware/tools -tools $(ARDUINO_DIR)/tools-builder -fqbn arduino:avr:mega:cpu=atmega2560 \
99
-build-path arduino-builder \
1010
barwin-arduino.ino
1111

upload.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
avrdude -C//etc/avrdude.conf -v -patmega32u4 -carduino -P/dev/ttyACM0 -b9600 -D -Uflash:w:/tmp/arduino_build_766618/bla.ino.hex:i
1+
avrdude -C//etc/avrdude.conf -v -patmega2560 -cstk500v2 -P/dev/ttyACM0 -b115200 -D -Uflash:w:$PWD/arduino-builder/barwin-arduino.ino.hex:i

0 commit comments

Comments
 (0)