Commit Graph

695 Commits

Author SHA1 Message Date
Thomas Farstrike ff21743fbb fri3d_2024: cleanups 2026-03-12 16:00:52 +01:00
Thomas Farstrike 4745a51c04 Improve settings_activity.py 2026-03-12 15:45:57 +01:00
Thomas Farstrike 937db9e306 firstrun: handle auto start 2026-03-11 21:14:04 +01:00
Thomas Farstrike 1bf1dd67f0 SharedPreferences: fix None handling 2026-03-11 21:09:43 +01:00
Thomas Farstrike a7727d7a0b task_handler each 1ms for higher framerate, start firstrun at startup, remove launcher icon (not needed) 2026-03-11 18:44:06 +01:00
Thomas Farstrike 94401dbbde SensorManager: skip if no iio sensor connected
This fixes:

Traceback (most recent call last):
  File "<stdin>", line 31, in <module>
  File "lib/mpos/main.py", line 150, in <module>
  File "lib/mpos/board/linux.py", line 133, in <module>
  File "lib/mpos/sensor_manager.py", line 286, in class_method
  File "lib/mpos/sensor_manager.py", line 109, in init_iio
  File "lib/mpos/imu/manager.py", line 52, in init_iio
  File "lib/mpos/imu/drivers/iio.py", line 21, in __init__
  File "lib/mpos/imu/drivers/iio.py", line 129, in ensure_sampling_frequency_max
TypeError: unsupported types for __add__: 'NoneType', 'str'
2026-03-11 15:10:48 +01:00
Thomas Farstrike f831a880b5 Improve output 2026-03-11 14:24:10 +01:00
Thomas Farstrike 426f1b2541 Comments 2026-03-11 14:23:53 +01:00
Thomas Farstrike 58bc76532e lilygo_t_display_s3.py: comments 2026-03-11 14:21:07 +01:00
Thomas Farstrike 90da4912f1 Comments 2026-03-11 14:15:47 +01:00
Jens Diemer 2f4adfcace Add support for unPhone 9 (#74)
https://unphone.net/

What worked:

- hx8357d Display and XPT2046 touch screen works
- Turn display backlight on/off via TCA9555 chip
- Buttons

TODOs:

- Use LEDs
- LoRa
- IR

`.../lib/drivers/display/hx8357d/` is a not modified copy from
https://github.com/lvgl-micropython/lvgl_micropython/tree/main/api_drivers/common_api_drivers/display/hx8357d

`.../lib/drivers/indev/xpt2046.py` based on
https://github.com/lvgl-micropython/lvgl_micropython/blob/main/api_drivers/common_api_drivers/indev/xpt2046.py
but is modified: Because of the shared SPI bus for SPI for hx8357d display and xpt2046 touch
controller. For this i add the management of `CS` pins for reading the touch controller.
Let's discuss how to add this to upstream in
https://github.com/lvgl-micropython/lvgl_micropython/issues/536
2026-03-11 12:38:52 +01:00
Pavel Machek 0ac9d7155e gyro: add gyroscope test/display application (#76)
* iio: switch to maximum sampling frequency, apply mount matrix

* mag: Apply mount matrix for magnetometer, too

* iio: allow separate path for gyro sensor

* gyro: fork from compass, get drawing back to work

* iio: add todo.

* gyro: gyro seems to work way better on pinephone

* iio: move scale conversion where it belongs

* gyro: rely of iio driver providing right scale of values

* iio: Turn down debugging, but I still get framerate drops

* gyro: add reset and calibration support, introduce vectors, display help image
2026-03-11 12:36:00 +01:00
Thomas Farstrike e9cc9b5cb2 odroid_go.py: fix on_complete argument exception 2026-03-11 08:20:47 +01:00
Thomas Farstrike 4bc88fdae0 lilygo_t_display_s3.py: use full framebuffer 2026-03-10 22:29:40 +01:00
Thomas Farstrike a3ad6ac8ab Try render_mode = lv.DISPLAY_RENDER_MODE.FULL
It's sort of okay but there's a skew/italic effect.
2026-03-10 14:50:55 +01:00
Thomas Farstrike 519ceaae6f webrepl: support access from LAN, without internet
Host everything on the device itself, rather than redirecting
to https://micropython.org/webrepl/ because that doesn't work when
there is not internet, including when the device is in Access Point
mode.

This was a bit slow, because of the many files and being pretty large,
but the inline_minify_webrepl.py makes this much better and brings it
down to around 1s to load the page, versus 20 seconds.

The minification also reduces the size from around 160KB to 80KB.
2026-03-05 11:17:25 +01:00
Thomas Farstrike 7d707244dd bma423: avoid i2c scan if possible 2026-03-02 00:21:52 +01:00
Thomas Farstrike 6ce0fcfc4e lilygo_t_watch_s3_plus: add bma423 IMU sensor 2026-03-02 00:06:25 +01:00
Thomas Farstrike 66e64e028a lilygo_t_watch_s3_plus: vibrator works, sound does not 2026-03-01 23:29:03 +01:00
Thomas Farstrike 0917e39b04 lilygo_t_watch_s3_plus: fix orientation 2026-03-01 22:56:08 +01:00
Thomas Farstrike f492278b99 Improve lilygo_t_watch_s3_plus 2026-03-01 22:45:30 +01:00
Thomas Farstrike ffd2a68636 Fix typo in cst816s.py 2026-03-01 22:45:08 +01:00
Thomas Farstrike ce603eecd0 Audio: disable MCK after playback if enabled 2026-02-28 18:18:30 +01:00
Thomas Farstrike 4f82bb9b9f stream_record_adc.py: increase attenuation 2026-02-28 18:18:05 +01:00
Thomas Farstrike d6d05bf0f5 Simplify 2026-02-27 15:55:26 +01:00