pico-sdk commit hash a1438dff1d38bd9c65dbd693f0e5db4b9ae91779
https://github.com/zenodante/PicoCalc-micropython-driver commit hash fa8b24c3d7b4b1b6d621b46ceced787dce69f4c1
micropython commit hash 4efc5e12b94082af16520e73ecdd53a67ceddfcf
all repos above need `git submodule update` to sync with their submodules
PicoCalc-micropython-driver/pico_files/modules/picocalc.py
```
diff --git a/pico_files/modules/picocalc.py b/pico_files/modules/picocalc.py
index 6178ab1..e503ccb 100644
--- a/pico_files/modules/picocalc.py
+++ b/pico_files/modules/picocalc.py
@@ -141,7 +141,7 @@ class PicoKeyboard:
self.ignor = True
self.address = address
self.temp=bytearray(2)
- self.reset()
+ #self.reset()
self.isShift = False
self.isCtrl = False
self.isAlt = False
@@ -524,4 +524,4 @@ class PicoSpeaker:
return
for freqc, msec in tune:
- self._play_frequency(freqc, msec * 0.001)
\ No newline at end of file
+ self._play_frequency(freqc, msec * 0.001)
```
copy PicoCalc-micropython-driver/pico_files/modules/*.py to micropython/ports/rp2/modules
copy PicoCalc-micropython-driver/pico_files/root/*.py to micropython/ports/rp2/modules
get into micropython/ports/rp2/ to prepare to compile,follow the PicoCalc-micropython-driver/README.md to get it done
here is a brief tip
```
mkdir build && cd build
-DUSER_C_MODULES="Path/To/PicoCalc-micropython-driver/picocalcdisplay/micropython.cmake;Path/To/PicoCalc-micropython-driver/vtterminal/micropython.cmake" \
32 -DMICROPY_BOARD=[TARGET_BOARD]
make
cp firmware.uf2 /media/xxxx/RPI-RP2
```
Supported `TARGET_BOARD` values:
- `RPI_PICO`
- `RPI_PICO2`
- `RPI_PICO2_W`
* Read battery percentage with charging status flag
* Read and set keyboard backlight
* Bug fix low_bat,add debounce to avoid false shutdown
* Depricated report_bat()