Commit Graph

2046 Commits

Author SHA1 Message Date
Thomas Farstrike 0b2368464b WifiService: add functions for IP address 2026-02-18 18:12:11 +01:00
Thomas Farstrike be89ba0dce mklittlefs: use internal_filesystem by default 2026-02-18 18:11:45 +01:00
Thomas Farstrike 8c087a988f DownloadManager: make certificates explicit 2026-02-18 18:11:23 +01:00
Thomas Farstrike eca3a08fd9 build_mpos.sh: add esp32s3_qemu target 2026-02-18 18:10:14 +01:00
Thomas Farstrike 9faf5e47be About app: add network info 2026-02-18 16:55:34 +01:00
Thomas Farstrike 8a54db91ef Add lilygo_t_watch_s3_plus (untested) 2026-02-18 15:46:28 +01:00
Thomas Farstrike 987e8f6a5b Fix test 2026-02-17 21:32:40 +01:00
Thomas Farstrike d64afd2cc5 Fix unit test 2026-02-17 21:29:38 +01:00
Thomas Farstrike 024bb713f5 Update version 2026-02-16 21:53:25 +01:00
Thomas Farstrike d78d744d85 Merge branch 'main' of https://github.com/MicroPythonOS/MicroPythonOS 2026-02-16 21:52:43 +01:00
Thomas Farstrike 7b33096eeb Fix build 2026-02-16 21:52:38 +01:00
Jens Diemer e35c47ccdd Update board/m5stack_fire.py (#43)
Init Buzzer and play a intro on startup.

* Cleanup imports.
* Use const()
* Hard reset if `machine.SPI.Bus()` init not possible
2026-02-16 21:45:56 +01:00
Jens Diemer 0423e09522 Updates for ODROID-GO (#40)
Setup the "Buzzer" and play intro and outro ;) Don't know if "I2S audio" is possible.

Battery "settings": I tested to run ODROID-GO as long as it's possible. The min. raw ADC value on
ODROID-GO i have seen is 210. So update the calculation.

Fix the boot by moving ODROID-GO below `fri3d_2024` because the device will hard crash on
`fail_save_i2c(sda=9, scl=18)` like:
```
MicroPythonOS 0.8.1 running lib/mpos/main.py
matouch_esp32_s3_spi_ips_2_8_with_camera_ov3660 ?
Try to I2C initialized on sda=39 scl=38
OK
Attempt to write a single byte to I2C bus address 0x14...
No device at this address: [Errno 116] ETIMEDOUT
Attempt to write a single byte to I2C bus address 0x5d...
No device at this address: [Errno 116] ETIMEDOUT
waveshare_esp32_s3_touch_lcd_2 ?
Try to I2C initialized on sda=48 scl=47
Failed: invalid pin
m5stack_fire ?
Try to I2C initialized on sda=21 scl=22
OK
Attempt to write a single byte to I2C bus address 0x68...
No device at this address: [Errno 19] ENODEV
fri3d_2024 ?
Try to I2C initialized on sda=9 scl=18
OK

A fatal error occurred. The crash dump printed below may be used to help
determine what caused it. If you are not already running the most recent
version of MicroPython, consider upgrading. New versions often fix bugs.

To learn more about how to debug and/or report this crash visit the wiki
page at: https://github.com/micropython/micropython/wiki/ESP32-debugging

LVGL MicroPython
IDF version : v5.4
Machine     : Generic ESP32 module with SPIRAM with ESP32

Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.

Core  1 register dump:
PC      : 0x401b04dd  PS      : 0x00060830  A0      : 0x801b0944  A1      : 0x3ffdb390
A2      : 0x3f80d2b0  A3      : 0x00000054  A4      : 0x3f8105e8  A5      : 0x3f54b240
A6      : 0x00000001  A7      : 0xaaaaae2a  A8      : 0x00000019  A9      : 0x3ffdb370
A10     : 0xaaaaae2a  A11     : 0x00000063  A12     : 0x3ffc7ccc  A13     : 0x00000000
A14     : 0x3f4464f4  A15     : 0x00000001  SAR     : 0x00000020  EXCCAUSE: 0x0000001c
EXCVADDR: 0xaaaaae37  LBEG    : 0x401d2964  LEND    : 0x401d296d  LCOUNT  : 0x00000000

Backtrace: 0x401b04da:0x3ffdb390 0x401b0941:0x3ffdb3b0 0x40086719:0x3ffdb3d0 0x401a90da:0x3ffdb460
0x401b07ba:0x3ffdb490 0x40085de9:0x3ffdb4b0 0x401a90da:0x3ffdb540 0x401b07ba:0x3ffdb5b0
0x40085de9:0x3ffdb5d0 0x401a90da:0x3ffdb660 0x401b07ba:0x3ffdb690 0x401b083a:0x3ffdb6b0
0x401d35c1:0x3ffdb6f0 0x401d3809:0x3ffdb730 0x401b0919:0x3ffdb830 0x40085b59:0x3ffdb870
0x401a90da:0x3ffdb900 0x401b07ba:0x3ffdb970 0x401b07e2:0x3ffdb990 0x401e8d02:0x3ffdb9b0
0x401e90c9:0x3ffdba40 0x401c5b2d:0x3ffdba70
```
2026-02-16 21:42:14 +01:00
Jens Diemer ed0b94a44a Enhance ShowBattery App (#39)
Make the Layout nicer. Make the graph bigger. Display battery icon.
2026-02-16 21:28:30 +01:00
Thomas Farstrike 7431537010 AudioManager: add support for adc_mic
This works for init:

AudioManager(i2s_pins=i2s_pins, adc_mic_pin=1)

And then this for recording:

AudioManager.record_wav_adc(file_path="/recording.wav",duration_ms=5000,sample_rate=16000,on_complete=lambda msg: print(f"Finished: {msg}"))
2026-02-16 16:39:52 +01:00
Thomas Farstrike cdb2651e91 Work on adc_mic 2026-02-16 16:12:06 +01:00
Thomas Farstrike 1b82fb2d09 adc_mic: add nr of samples argument 2026-02-16 14:20:12 +01:00
Thomas Farstrike d256c54394 Improve adc_mic 2026-02-15 15:41:15 +01:00
Thomas Farstrike 4ab4e31de1 Fix board detect 2026-02-15 14:37:24 +01:00
Thomas Farstrike c8ffb9d752 Exclude cz.ucw.pavel.calendar from bundling 2026-02-14 21:22:23 +01:00
Thomas Farstrike ac46bdce3d Tweak manifest 2026-02-14 21:20:06 +01:00
Pavel Machek 9db8287328 Add simple calendar application (#38)
* cal: initial version

* cal: hacks to get more functionality working

* cal: Disable file output for now

* cal: Got button mapping to work

* cal: tweak power and size

* cal: Tweak layouts

* cal: got events to display

* cal: single day addition now works

* cal: got file i/o to work

* cal: Layout tweaks

* cal: Tweak add dialog

* calendar/columns: start separate apps for them

* calendar: open keyboard

* calendar: make keyboard fit on small screen

* calendar: better metadata for calendar

* calendar: more metadata tweaks

* calendar: revert hello tweaks

* calendar: revert columns changes.

* calendar: remove manifest from columns

* calendar: attempt to fix MANIFEST
2026-02-14 21:14:58 +01:00
Thomas Farstrike 60fcf64a68 Merge pull request #37 from jedie/clear-battery-cache
Clear battery cache in ShowBattery app
2026-02-14 20:27:41 +01:00
JensDiemer ac89237647 Enhance ShowBattery and fixes for Odroid-GO battery
Add a "Real-time values" checkbox to ShowBattery app. If checked, then the cache will be clear on
every cycle.

Bugfix: Use `mpos.time.localtime()` to get the "correct" local time with timezone offset.

Changes for Odroid-GO:

The seen "2400" values are at startup the Odroid-GO... After a while the values are somewhere
between 270 and 310... The full range is unknown, yet. But with the new calculation it looks more
realistic, then before ;)
2026-02-14 17:20:02 +01:00
Thomas Farstrike 86b08b7378 Fix frozen files 2026-02-13 23:17:53 +01:00