You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Add building patches
This commit is contained in:
+1128
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,14 @@
|
||||
diff --git a/tools/mpremote/mpremote/main.py b/tools/mpremote/mpremote/main.py
|
||||
index e6e3970..5501fa4 100644
|
||||
--- a/tools/mpremote/mpremote/main.py
|
||||
+++ b/tools/mpremote/mpremote/main.py
|
||||
@@ -477,7 +477,8 @@ class State:
|
||||
self.ensure_connected()
|
||||
soft_reset = self._auto_soft_reset if soft_reset is None else soft_reset
|
||||
if soft_reset or not self.transport.in_raw_repl:
|
||||
- self.transport.enter_raw_repl(soft_reset=soft_reset)
|
||||
+ #self.transport.enter_raw_repl(soft_reset=soft_reset)
|
||||
+ self.transport.enter_raw_repl(soft_reset=False)
|
||||
self._auto_soft_reset = False
|
||||
|
||||
def ensure_friendly_repl(self):
|
||||
@@ -0,0 +1,23 @@
|
||||
diff --git a/api_drivers/common_api_drivers/indev/cst816s.py b/api_drivers/common_api_drivers/indev/cst816s.py
|
||||
index 146bdae..46f3451 100644
|
||||
--- a/api_drivers/common_api_drivers/indev/cst816s.py
|
||||
+++ b/api_drivers/common_api_drivers/indev/cst816s.py
|
||||
@@ -40,7 +40,8 @@ _BPC1H = const(0xB2)
|
||||
_BPC1L = const(0xB3)
|
||||
|
||||
_ChipID = const(0xA7)
|
||||
-_ChipIDValue = const(0xB5)
|
||||
+_ChipIDValueS = const(0xB5) # cst816s
|
||||
+_ChipIDValue = const(0xB6) # cst816
|
||||
|
||||
_ProjID = const(0xA8)
|
||||
_FwVersion = const(0xA9)
|
||||
@@ -205,7 +206,7 @@ class CST816S(pointer_framework.PointerDriver):
|
||||
self._read_reg(_FwVersion)
|
||||
print('FW Version:', hex(self._rx_buf[0]))
|
||||
|
||||
- if chip_id != _ChipIDValue:
|
||||
+ if chip_id != _ChipIDValue and chip_id != ChipIDValueS:
|
||||
raise RuntimeError(f'Incorrect chip id ({hex(_ChipIDValue)})')
|
||||
|
||||
self._write_reg(_IrqCtl, _EnTouch | _EnChange)
|
||||
Reference in New Issue
Block a user