You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Comments
This commit is contained in:
@@ -10,9 +10,9 @@ adc_pin = None
|
||||
# Cache to reduce WiFi interruptions (ADC2 requires WiFi to be disabled)
|
||||
_cached_raw_adc = None
|
||||
_last_read_time = 0
|
||||
CACHE_DURATION_ADC2_MS = 300000 # 300 seconds (expensive: requires WiFi disable)
|
||||
CACHE_DURATION_ADC1_MS = 30000 # 30 seconds (cheaper: no WiFi interference)
|
||||
|
||||
CACHE_DURATION_ADC2_MS = 300000 # 300 seconds (expensive: requires WiFi disable)
|
||||
#CACHE_DURATION_ADC2_MS = CACHE_DURATION_ADC1_MS # trigger frequent disconnections for debugging OSUpdate resume
|
||||
|
||||
def _is_adc2_pin(pin):
|
||||
"""Check if pin is on ADC2 (ESP32-S3: GPIO11-20)."""
|
||||
|
||||
+9
-8
@@ -50,14 +50,6 @@ fi
|
||||
|
||||
$mpremote fs cp -r lib :/
|
||||
|
||||
$mpremote fs mkdir :/apps
|
||||
$mpremote fs cp -r apps/com.micropythonos.* :/apps/
|
||||
find apps/ -maxdepth 1 -type l | while read symlink; do
|
||||
echo "Handling symlink $symlink"
|
||||
$mpremote fs mkdir :/"$symlink"
|
||||
$mpremote fs cp -r "$symlink"/* :/"$symlink"/
|
||||
|
||||
done
|
||||
|
||||
#echo "Unmounting builtin/ so that it can be customized..." # not sure this is necessary
|
||||
#$mpremote exec "import os ; os.umount('/builtin')"
|
||||
@@ -70,6 +62,15 @@ $mpremote fs mkdir :/data
|
||||
$mpremote fs mkdir :/data/com.micropythonos.system.wifiservice
|
||||
$mpremote fs cp ../internal_filesystem_excluded/data/com.micropythonos.system.wifiservice/config.json :/data/com.micropythonos.system.wifiservice/
|
||||
|
||||
$mpremote fs mkdir :/apps
|
||||
$mpremote fs cp -r apps/com.micropythonos.* :/apps/
|
||||
find apps/ -maxdepth 1 -type l | while read symlink; do
|
||||
echo "Handling symlink $symlink"
|
||||
$mpremote fs mkdir :/"$symlink"
|
||||
$mpremote fs cp -r "$symlink"/* :/"$symlink"/
|
||||
|
||||
done
|
||||
|
||||
popd
|
||||
|
||||
# Install test infrastructure (for running ondevice tests)
|
||||
|
||||
Reference in New Issue
Block a user