From b43d0f76c7cc41db616bbe710412fa3e9935d17c Mon Sep 17 00:00:00 2001 From: theLMGN Date: Tue, 2 Mar 2021 13:38:03 +0000 Subject: [PATCH 1/5] Add Tiny 2040 support for Pi 2040 mode. --- mu/modes/pico.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mu/modes/pico.py b/mu/modes/pico.py index f2833719c..1272ee8bd 100644 --- a/mu/modes/pico.py +++ b/mu/modes/pico.py @@ -40,6 +40,7 @@ class PicoMode(ESPMode): valid_boards = [ # VID , PID, Manufacturer string, Device name (0x2E8A, 0x0005, None, "Raspberry Pi Pico"), + (0x16d0, 0x08c7, None, "Tiny 2040") ] def api(self): From 4af8d0af3251551536b353dc133e060eaf94d249 Mon Sep 17 00:00:00 2001 From: theLMGN Date: Tue, 2 Mar 2021 13:50:21 +0000 Subject: [PATCH 2/5] Fix formatting --- mu/modes/pico.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mu/modes/pico.py b/mu/modes/pico.py index 1272ee8bd..cd40ab2ca 100644 --- a/mu/modes/pico.py +++ b/mu/modes/pico.py @@ -40,7 +40,7 @@ class PicoMode(ESPMode): valid_boards = [ # VID , PID, Manufacturer string, Device name (0x2E8A, 0x0005, None, "Raspberry Pi Pico"), - (0x16d0, 0x08c7, None, "Tiny 2040") + (0x16d0, 0x08c7, None, "Tiny 2040") ] def api(self): From b4a529afea66dbdb424d7b26cc9281cb2218be47 Mon Sep 17 00:00:00 2001 From: theLMGN Date: Fri, 5 Mar 2021 16:40:09 +0000 Subject: [PATCH 3/5] Add Tiny 2040 support for CircuitPython mode. --- mu/modes/circuitpython.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mu/modes/circuitpython.py b/mu/modes/circuitpython.py index 595cef502..e4eb809a8 100644 --- a/mu/modes/circuitpython.py +++ b/mu/modes/circuitpython.py @@ -72,6 +72,8 @@ class CircuitPythonMode(MicroPythonMode): (0x239A, 0x80AC, None, "Unexpected Maker FeatherS2"), (0x303A, 0x8002, None, "Unexpected Maker TinyS2"), (0x054C, 0x0BC2, None, "Spresense"), + (0x2E8A, 0x0005, None, "Raspberry Pi Pico"), + (0x16d0, 0x08c7, None, "Tiny 2040") ] # Modules built into CircuitPython which mustn't be used as file names # for source code. From f65dba0a1d3791526e51064fd6e070a4a70cfdf0 Mon Sep 17 00:00:00 2001 From: theLMGN Date: Fri, 5 Mar 2021 16:41:46 +0000 Subject: [PATCH 4/5] Partially revert my CircuitPython commit --- mu/modes/circuitpython.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mu/modes/circuitpython.py b/mu/modes/circuitpython.py index e4eb809a8..1145fbcf7 100644 --- a/mu/modes/circuitpython.py +++ b/mu/modes/circuitpython.py @@ -72,7 +72,6 @@ class CircuitPythonMode(MicroPythonMode): (0x239A, 0x80AC, None, "Unexpected Maker FeatherS2"), (0x303A, 0x8002, None, "Unexpected Maker TinyS2"), (0x054C, 0x0BC2, None, "Spresense"), - (0x2E8A, 0x0005, None, "Raspberry Pi Pico"), (0x16d0, 0x08c7, None, "Tiny 2040") ] # Modules built into CircuitPython which mustn't be used as file names From 85ed0f97f4544d73a875eb68922c10862f50f1da Mon Sep 17 00:00:00 2001 From: theLMGN Date: Mon, 12 Apr 2021 00:42:45 +0100 Subject: [PATCH 5/5] make changes as requested --- mu/modes/circuitpython.py | 2 +- mu/modes/pico.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mu/modes/circuitpython.py b/mu/modes/circuitpython.py index 1145fbcf7..29e75f912 100644 --- a/mu/modes/circuitpython.py +++ b/mu/modes/circuitpython.py @@ -72,7 +72,7 @@ class CircuitPythonMode(MicroPythonMode): (0x239A, 0x80AC, None, "Unexpected Maker FeatherS2"), (0x303A, 0x8002, None, "Unexpected Maker TinyS2"), (0x054C, 0x0BC2, None, "Spresense"), - (0x16d0, 0x08c7, None, "Tiny 2040") + (0x16d0, 0x08c7, None, "Tiny 2040"), ] # Modules built into CircuitPython which mustn't be used as file names # for source code. diff --git a/mu/modes/pico.py b/mu/modes/pico.py index cd40ab2ca..f2833719c 100644 --- a/mu/modes/pico.py +++ b/mu/modes/pico.py @@ -40,7 +40,6 @@ class PicoMode(ESPMode): valid_boards = [ # VID , PID, Manufacturer string, Device name (0x2E8A, 0x0005, None, "Raspberry Pi Pico"), - (0x16d0, 0x08c7, None, "Tiny 2040") ] def api(self):