From 695cd73a275d1f65ff7f25586a0aec9eb7d9b170 Mon Sep 17 00:00:00 2001 From: lxxxxl Date: Sat, 11 Sep 2021 23:06:26 +0300 Subject: [PATCH 1/2] Fix for MHETtiny88 board support --- boards/MHETtiny88.json | 23 +++++++++++++++++++++++ builder/frameworks/arduino.py | 2 +- platform.py | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 boards/MHETtiny88.json diff --git a/boards/MHETtiny88.json b/boards/MHETtiny88.json new file mode 100644 index 0000000..cceb29b --- /dev/null +++ b/boards/MHETtiny88.json @@ -0,0 +1,23 @@ +{ + "build": { + "core": "tiny88", + "extra_flags": "-DARDUINO_AVR_ATTINYX8", + "f_cpu": "16500000L", + "mcu": "attiny88", + "variant": "MHtiny88" + }, + "debug": { + "simavr_target": "attiny88" + }, + "frameworks": [ + "arduino" + ], + "name": "Digispark USB MH-ET Live Tiny88", + "upload": { + "maximum_ram_size": 512, + "maximum_size": 6650, + "protocol": "micronucleus" + }, + "url": "http://digistump.com/products/1", + "vendor": "Digistump" +} diff --git a/builder/frameworks/arduino.py b/builder/frameworks/arduino.py index e358ac7..b1d97f4 100644 --- a/builder/frameworks/arduino.py +++ b/builder/frameworks/arduino.py @@ -32,7 +32,7 @@ build_core = board.get("build.core", "") FRAMEWORK_DIR = platform.get_package_dir("framework-arduino-avr") -if build_core in ("dtiny", "pro"): +if build_core in ("dtiny", "pro", "tiny88"): FRAMEWORK_DIR = platform.get_package_dir("framework-arduino-avr-digistump") elif build_core in ("tiny", "tinymodern"): FRAMEWORK_DIR = platform.get_package_dir("framework-arduino-avr-attiny") diff --git a/platform.py b/platform.py index 6d816df..46edf9b 100644 --- a/platform.py +++ b/platform.py @@ -30,7 +30,7 @@ def configure_default_packages(self, variables, targets): "pioframework", []) and build_core != "arduino": framework_package = "framework-arduino-avr-%s" % build_core.lower() - if build_core in ("dtiny", "pro"): + if build_core in ("dtiny", "pro", "tiny88"): framework_package = "framework-arduino-avr-digistump" elif build_core in ("tiny", "tinymodern"): framework_package = "framework-arduino-avr-attiny" From 310c65326667a46d603c70788907fdd09306a2f5 Mon Sep 17 00:00:00 2001 From: lxxxxl Date: Sun, 26 Sep 2021 09:03:12 +0300 Subject: [PATCH 2/2] use correct board variant --- boards/MHETtiny88.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/MHETtiny88.json b/boards/MHETtiny88.json index cceb29b..11e1c85 100644 --- a/boards/MHETtiny88.json +++ b/boards/MHETtiny88.json @@ -4,7 +4,7 @@ "extra_flags": "-DARDUINO_AVR_ATTINYX8", "f_cpu": "16500000L", "mcu": "attiny88", - "variant": "MHtiny88" + "variant": "tinyX8" }, "debug": { "simavr_target": "attiny88"