diff --git a/boards/MHETtiny88.json b/boards/MHETtiny88.json new file mode 100644 index 0000000..11e1c85 --- /dev/null +++ b/boards/MHETtiny88.json @@ -0,0 +1,23 @@ +{ + "build": { + "core": "tiny88", + "extra_flags": "-DARDUINO_AVR_ATTINYX8", + "f_cpu": "16500000L", + "mcu": "attiny88", + "variant": "tinyX8" + }, + "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"