@geastack/targets 0.1.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +83 -0
  3. package/package.json +50 -0
  4. package/targets/cmake/geatsc-generated-archive-build.mjs +614 -0
  5. package/targets/cmake/geatsc_generated_archive.cmake +116 -0
  6. package/targets/cmake/geatsc_generated_archive_build.cmake +50 -0
  7. package/targets/esp32/app_project.cmake +33 -0
  8. package/targets/esp32/apps/app_manager.cpp +188 -0
  9. package/targets/esp32/apps/app_manager.h +10 -0
  10. package/targets/esp32/chip_bindings/README.md +58 -0
  11. package/targets/esp32/chip_bindings/audio/es8311.cpp +556 -0
  12. package/targets/esp32/chip_bindings/displays/co5300.cpp +510 -0
  13. package/targets/esp32/chip_bindings/displays/co5300.h +47 -0
  14. package/targets/esp32/chip_bindings/displays/co5300_async_stream.inc +79 -0
  15. package/targets/esp32/chip_bindings/displays/qspi_panel.h +65 -0
  16. package/targets/esp32/chip_bindings/displays/sh8601.cpp +583 -0
  17. package/targets/esp32/chip_bindings/displays/sh8601.h +36 -0
  18. package/targets/esp32/chip_bindings/gps/lc76g.cpp +296 -0
  19. package/targets/esp32/chip_bindings/gps/lc76g.h +7 -0
  20. package/targets/esp32/chip_bindings/imu/bmi270.cpp +299 -0
  21. package/targets/esp32/chip_bindings/imu/bmi270_config.inl +439 -0
  22. package/targets/esp32/chip_bindings/imu/qmi8658.cpp +213 -0
  23. package/targets/esp32/chip_bindings/power/axp2101.cpp +185 -0
  24. package/targets/esp32/chip_bindings/touch/cst9217.cpp +229 -0
  25. package/targets/esp32/chip_bindings/touch/cst9217_controller.h +78 -0
  26. package/targets/esp32/chip_bindings/touch/ft3168.cpp +340 -0
  27. package/targets/esp32/chip_bindings/touch/ft3168_controller.h +103 -0
  28. package/targets/esp32/chip_bindings/touch/ft6336.cpp +310 -0
  29. package/targets/esp32/chip_bindings/touch/ft6336_controller.h +90 -0
  30. package/targets/esp32/components/gea_framework/CMakeLists.txt +62 -0
  31. package/targets/esp32/connectivity/ble_hid.cpp +2916 -0
  32. package/targets/esp32/connectivity/ble_hid.h +8 -0
  33. package/targets/esp32/connectivity/diagnostics_transport.cpp +523 -0
  34. package/targets/esp32/connectivity/diagnostics_transport_offline.cpp +108 -0
  35. package/targets/esp32/connectivity/wifi.cpp +615 -0
  36. package/targets/esp32/connectivity/wifi_debug_offline.cpp +37 -0
  37. package/targets/esp32/connectivity/wifi_task_stack.h +119 -0
  38. package/targets/esp32/display.cpp +6010 -0
  39. package/targets/esp32/display_headless.cpp +468 -0
  40. package/targets/esp32/gea/platform_random.h +11 -0
  41. package/targets/esp32/gea_framework.cmake +382 -0
  42. package/targets/esp32/gpio.cpp +229 -0
  43. package/targets/esp32/host_sources.cmake +35 -0
  44. package/targets/esp32/imu_absent.cpp +36 -0
  45. package/targets/esp32/ldfragments/gea_ui_state_external.lf +35 -0
  46. package/targets/esp32/memory_config.h +64 -0
  47. package/targets/esp32/power_absent.cpp +22 -0
  48. package/targets/esp32/sdk-patches/0001-esp_ptr_dma_capable-accept-PSRAM.patch +70 -0
  49. package/targets/esp32/sdk-patches/0002-gdma-access_ext_mem-spi_master.patch +59 -0
  50. package/targets/esp32/sdk-patches/README.md +127 -0
  51. package/targets/esp32/services/app_runner.cpp +248 -0
  52. package/targets/esp32/services/app_state.cpp +56 -0
  53. package/targets/esp32/services/audio_runtime_stub.cpp +86 -0
  54. package/targets/esp32/services/battery_service.cpp +31 -0
  55. package/targets/esp32/services/device_control.cpp +1896 -0
  56. package/targets/esp32/services/device_control.h +31 -0
  57. package/targets/esp32/services/frame_scheduler.cpp +1571 -0
  58. package/targets/esp32/services/heap.cpp +129 -0
  59. package/targets/esp32/services/memory.cpp +103 -0
  60. package/targets/esp32/services/ota.cpp +840 -0
  61. package/targets/esp32/services/ota_image.cpp +162 -0
  62. package/targets/esp32/services/ota_image.h +16 -0
  63. package/targets/esp32/services/storage_service.cpp +159 -0
  64. package/targets/esp32/touch_absent.cpp +44 -0
  65. package/targets/esp32-m5stack-m5paper/CMakeLists.txt +10 -0
  66. package/targets/esp32-m5stack-m5paper/README.md +55 -0
  67. package/targets/esp32-m5stack-m5paper/dependencies.lock +76 -0
  68. package/targets/esp32-m5stack-m5paper/main/CMakeLists.txt +46 -0
  69. package/targets/esp32-m5stack-m5paper/main/Kconfig.projbuild +10 -0
  70. package/targets/esp32-m5stack-m5paper/main/app_main.cpp +114 -0
  71. package/targets/esp32-m5stack-m5paper/main/audio_stub.cpp +27 -0
  72. package/targets/esp32-m5stack-m5paper/main/buttons.cpp +111 -0
  73. package/targets/esp32-m5stack-m5paper/main/display.cpp +1074 -0
  74. package/targets/esp32-m5stack-m5paper/main/i2c.cpp +36 -0
  75. package/targets/esp32-m5stack-m5paper/main/idf_component.yml +7 -0
  76. package/targets/esp32-m5stack-m5paper/main/imu_stub.cpp +20 -0
  77. package/targets/esp32-m5stack-m5paper/main/include/board.h +100 -0
  78. package/targets/esp32-m5stack-m5paper/main/include/buttons.h +8 -0
  79. package/targets/esp32-m5stack-m5paper/main/launcher_button.cpp +82 -0
  80. package/targets/esp32-m5stack-m5paper/main/m5paper_psram.lf +20 -0
  81. package/targets/esp32-m5stack-m5paper/main/power.cpp +73 -0
  82. package/targets/esp32-m5stack-m5paper/main/sdcard_mount.cpp +82 -0
  83. package/targets/esp32-m5stack-m5paper/main/touch.cpp +279 -0
  84. package/targets/esp32-m5stack-m5paper/partitions.csv +9 -0
  85. package/targets/esp32-m5stack-m5paper/sdkconfig.defaults +84 -0
  86. package/targets/esp32-p4-m5stack-tab5/CMakeLists.txt +10 -0
  87. package/targets/esp32-p4-m5stack-tab5/dependencies.lock +276 -0
  88. package/targets/esp32-p4-m5stack-tab5/main/CMakeLists.txt +586 -0
  89. package/targets/esp32-p4-m5stack-tab5/main/Kconfig.projbuild +12 -0
  90. package/targets/esp32-p4-m5stack-tab5/main/app_main.cpp +177 -0
  91. package/targets/esp32-p4-m5stack-tab5/main/camera.cpp +2025 -0
  92. package/targets/esp32-p4-m5stack-tab5/main/display.cpp +4033 -0
  93. package/targets/esp32-p4-m5stack-tab5/main/fatfs_ffconf.h +383 -0
  94. package/targets/esp32-p4-m5stack-tab5/main/i2c.cpp +39 -0
  95. package/targets/esp32-p4-m5stack-tab5/main/idf_component.yml +21 -0
  96. package/targets/esp32-p4-m5stack-tab5/main/include/board.h +130 -0
  97. package/targets/esp32-p4-m5stack-tab5/main/include/tab5_drivers.h +68 -0
  98. package/targets/esp32-p4-m5stack-tab5/main/include/wifi_config.h.example +5 -0
  99. package/targets/esp32-p4-m5stack-tab5/main/launcher_button.cpp +188 -0
  100. package/targets/esp32-p4-m5stack-tab5/main/power.cpp +22 -0
  101. package/targets/esp32-p4-m5stack-tab5/main/sdcard_mount.cpp +125 -0
  102. package/targets/esp32-p4-m5stack-tab5/main/tab5_audio.cpp +345 -0
  103. package/targets/esp32-p4-m5stack-tab5/main/tab5_drivers.cpp +871 -0
  104. package/targets/esp32-p4-m5stack-tab5/main/tab5_imu.cpp +246 -0
  105. package/targets/esp32-p4-m5stack-tab5/main/touch.cpp +206 -0
  106. package/targets/esp32-p4-m5stack-tab5/partitions.csv +12 -0
  107. package/targets/esp32-p4-m5stack-tab5/sdkconfig.defaults +128 -0
  108. package/targets/esp32-p4-waveshare-touch-lcd-3.5/CMakeLists.txt +19 -0
  109. package/targets/esp32-p4-waveshare-touch-lcd-3.5/component-patches/0001-esp_video-csi-raw-passthrough-p4-rev-lt-v3.patch +28 -0
  110. package/targets/esp32-p4-waveshare-touch-lcd-3.5/component-patches/README.md +45 -0
  111. package/targets/esp32-p4-waveshare-touch-lcd-3.5/component-patches/apply.sh +37 -0
  112. package/targets/esp32-p4-waveshare-touch-lcd-3.5/dependencies.lock +196 -0
  113. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/CMakeLists.txt +562 -0
  114. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/Kconfig.projbuild +12 -0
  115. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/app_main.cpp +166 -0
  116. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/camera.cpp +2105 -0
  117. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/display.cpp +1730 -0
  118. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/fatfs_ffconf.h +383 -0
  119. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/i2c.cpp +39 -0
  120. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/idf_component.yml +11 -0
  121. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/include/board.h +87 -0
  122. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/include/panel_native.h +59 -0
  123. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/include/wifi_config.h.example +5 -0
  124. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/launcher_button.cpp +191 -0
  125. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/power.cpp +15 -0
  126. package/targets/esp32-p4-waveshare-touch-lcd-3.5/main/touch.cpp +306 -0
  127. package/targets/esp32-p4-waveshare-touch-lcd-3.5/partitions.csv +13 -0
  128. package/targets/esp32-p4-waveshare-touch-lcd-3.5/patches/README.md +22 -0
  129. package/targets/esp32-p4-waveshare-touch-lcd-3.5/patches/espressif__esp_video-csi-bypass.patch +28 -0
  130. package/targets/esp32-p4-waveshare-touch-lcd-3.5/sdkconfig.defaults +109 -0
  131. package/targets/esp32-p4-waveshare-touch-lcd-3.5/tools/README-camera-capture.md +84 -0
  132. package/targets/esp32-p4-waveshare-touch-lcd-3.5/tools/capture-camera.py +369 -0
  133. package/targets/esp32-p4-waveshare-touch-lcd-7/CMakeLists.txt +10 -0
  134. package/targets/esp32-p4-waveshare-touch-lcd-7/dependencies.lock +258 -0
  135. package/targets/esp32-p4-waveshare-touch-lcd-7/main/CMakeLists.txt +577 -0
  136. package/targets/esp32-p4-waveshare-touch-lcd-7/main/Kconfig.projbuild +12 -0
  137. package/targets/esp32-p4-waveshare-touch-lcd-7/main/app_main.cpp +177 -0
  138. package/targets/esp32-p4-waveshare-touch-lcd-7/main/camera.cpp +1935 -0
  139. package/targets/esp32-p4-waveshare-touch-lcd-7/main/display.cpp +2832 -0
  140. package/targets/esp32-p4-waveshare-touch-lcd-7/main/fatfs_ffconf.h +383 -0
  141. package/targets/esp32-p4-waveshare-touch-lcd-7/main/i2c.cpp +39 -0
  142. package/targets/esp32-p4-waveshare-touch-lcd-7/main/idf_component.yml +23 -0
  143. package/targets/esp32-p4-waveshare-touch-lcd-7/main/include/board.h +68 -0
  144. package/targets/esp32-p4-waveshare-touch-lcd-7/main/include/wifi_config.h.example +5 -0
  145. package/targets/esp32-p4-waveshare-touch-lcd-7/main/launcher_button.cpp +191 -0
  146. package/targets/esp32-p4-waveshare-touch-lcd-7/main/power.cpp +15 -0
  147. package/targets/esp32-p4-waveshare-touch-lcd-7/main/sdcard_mount.cpp +125 -0
  148. package/targets/esp32-p4-waveshare-touch-lcd-7/main/touch.cpp +332 -0
  149. package/targets/esp32-p4-waveshare-touch-lcd-7/partitions.csv +12 -0
  150. package/targets/esp32-p4-waveshare-touch-lcd-7/sdkconfig.defaults +122 -0
  151. package/targets/esp32-p4-waveshare-touch-lcd-7/tools/README-camera-capture.md +84 -0
  152. package/targets/esp32-p4-waveshare-touch-lcd-7/tools/capture-camera.py +369 -0
  153. package/targets/esp32-s3-devkit-n16r8.json +31 -0
  154. package/targets/esp32-s3-elecrow-rotary-2.1/CMakeLists.txt +10 -0
  155. package/targets/esp32-s3-elecrow-rotary-2.1/dependencies.lock +40 -0
  156. package/targets/esp32-s3-elecrow-rotary-2.1/main/CMakeLists.txt +549 -0
  157. package/targets/esp32-s3-elecrow-rotary-2.1/main/Kconfig.projbuild +12 -0
  158. package/targets/esp32-s3-elecrow-rotary-2.1/main/app_main.cpp +187 -0
  159. package/targets/esp32-s3-elecrow-rotary-2.1/main/display_rgb.cpp +1338 -0
  160. package/targets/esp32-s3-elecrow-rotary-2.1/main/i2c.cpp +39 -0
  161. package/targets/esp32-s3-elecrow-rotary-2.1/main/idf_component.yml +5 -0
  162. package/targets/esp32-s3-elecrow-rotary-2.1/main/include/board.h +142 -0
  163. package/targets/esp32-s3-elecrow-rotary-2.1/main/include/pcf8574.h +16 -0
  164. package/targets/esp32-s3-elecrow-rotary-2.1/main/include/rotary_encoder.h +7 -0
  165. package/targets/esp32-s3-elecrow-rotary-2.1/main/launcher_button.cpp +191 -0
  166. package/targets/esp32-s3-elecrow-rotary-2.1/main/pcf8574.cpp +86 -0
  167. package/targets/esp32-s3-elecrow-rotary-2.1/main/platform_stubs.cpp +47 -0
  168. package/targets/esp32-s3-elecrow-rotary-2.1/main/rotary_encoder.cpp +135 -0
  169. package/targets/esp32-s3-elecrow-rotary-2.1/main/touch.cpp +250 -0
  170. package/targets/esp32-s3-elecrow-rotary-2.1/partitions.csv +8 -0
  171. package/targets/esp32-s3-elecrow-rotary-2.1/sdkconfig.defaults +116 -0
  172. package/targets/esp32-s3-epaper-1.54/CMakeLists.txt +10 -0
  173. package/targets/esp32-s3-epaper-1.54/dependencies.lock +76 -0
  174. package/targets/esp32-s3-epaper-1.54/main/CMakeLists.txt +691 -0
  175. package/targets/esp32-s3-epaper-1.54/main/Kconfig.projbuild +12 -0
  176. package/targets/esp32-s3-epaper-1.54/main/app_main.cpp +181 -0
  177. package/targets/esp32-s3-epaper-1.54/main/buttons.cpp +144 -0
  178. package/targets/esp32-s3-epaper-1.54/main/display.cpp +1281 -0
  179. package/targets/esp32-s3-epaper-1.54/main/fatfs_ffconf.h +377 -0
  180. package/targets/esp32-s3-epaper-1.54/main/i2c.cpp +39 -0
  181. package/targets/esp32-s3-epaper-1.54/main/idf_component.yml +7 -0
  182. package/targets/esp32-s3-epaper-1.54/main/imu_stub.cpp +21 -0
  183. package/targets/esp32-s3-epaper-1.54/main/include/board.h +119 -0
  184. package/targets/esp32-s3-epaper-1.54/main/include/buttons.h +9 -0
  185. package/targets/esp32-s3-epaper-1.54/main/include/wifi_config.h.example +5 -0
  186. package/targets/esp32-s3-epaper-1.54/main/launcher_button.cpp +191 -0
  187. package/targets/esp32-s3-epaper-1.54/main/power.cpp +15 -0
  188. package/targets/esp32-s3-epaper-1.54/main/sdcard_mount.cpp +89 -0
  189. package/targets/esp32-s3-epaper-1.54/main/touch.cpp +299 -0
  190. package/targets/esp32-s3-epaper-1.54/partitions.csv +8 -0
  191. package/targets/esp32-s3-epaper-1.54/sdkconfig.defaults +217 -0
  192. package/targets/esp32-s3-lilygo-t-display-s3-long/CMakeLists.txt +10 -0
  193. package/targets/esp32-s3-lilygo-t-display-s3-long/README.md +29 -0
  194. package/targets/esp32-s3-lilygo-t-display-s3-long/dependencies.lock +116 -0
  195. package/targets/esp32-s3-lilygo-t-display-s3-long/main/CMakeLists.txt +90 -0
  196. package/targets/esp32-s3-lilygo-t-display-s3-long/main/idf_component.yml +7 -0
  197. package/targets/esp32-s3-lilygo-t-display-s3-long/main/include/board.h +61 -0
  198. package/targets/esp32-s3-lilygo-t-display-s3-long/main/touch.cpp +299 -0
  199. package/targets/esp32-s3-lilygo-t-display-s3-long/partitions.csv +7 -0
  200. package/targets/esp32-s3-lilygo-t-display-s3-long/sdkconfig.defaults +50 -0
  201. package/targets/esp32-s3-lilygo-t5-epaper-4.7/CMakeLists.txt +12 -0
  202. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/CMakeLists.txt +17 -0
  203. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/ed047tc1.c +269 -0
  204. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/ed047tc1.h +142 -0
  205. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/epd_driver.c +1114 -0
  206. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/epd_driver.h +410 -0
  207. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/gea_epd.c +989 -0
  208. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/i2s_data_bus.c +489 -0
  209. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/i2s_data_bus.h +104 -0
  210. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/rmt_pulse.c +136 -0
  211. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/rmt_pulse.h +78 -0
  212. package/targets/esp32-s3-lilygo-t5-epaper-4.7/components/epd_driver/utilities.h +49 -0
  213. package/targets/esp32-s3-lilygo-t5-epaper-4.7/dependencies.lock +35 -0
  214. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/CMakeLists.txt +30 -0
  215. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/Kconfig.projbuild +10 -0
  216. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/app_main.cpp +95 -0
  217. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/audio_stub.cpp +27 -0
  218. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/buttons.cpp +40 -0
  219. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/display.cpp +627 -0
  220. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/i2c.cpp +36 -0
  221. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/idf_component.yml +4 -0
  222. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/imu_stub.cpp +20 -0
  223. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/include/board.h +85 -0
  224. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/include/buttons.h +8 -0
  225. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/launcher_button.cpp +82 -0
  226. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/power.cpp +36 -0
  227. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/sdcard_mount.cpp +90 -0
  228. package/targets/esp32-s3-lilygo-t5-epaper-4.7/main/touch.cpp +293 -0
  229. package/targets/esp32-s3-lilygo-t5-epaper-4.7/partitions.csv +9 -0
  230. package/targets/esp32-s3-lilygo-t5-epaper-4.7/sdkconfig.defaults +217 -0
  231. package/targets/esp32-s3-m5stack-papers3/CMakeLists.txt +13 -0
  232. package/targets/esp32-s3-m5stack-papers3/components/papers3_epd/CMakeLists.txt +5 -0
  233. package/targets/esp32-s3-m5stack-papers3/components/papers3_epd/include/papers3_epd.h +74 -0
  234. package/targets/esp32-s3-m5stack-papers3/components/papers3_epd/papers3_epd.c +671 -0
  235. package/targets/esp32-s3-m5stack-papers3/dependencies.lock +76 -0
  236. package/targets/esp32-s3-m5stack-papers3/main/CMakeLists.txt +64 -0
  237. package/targets/esp32-s3-m5stack-papers3/main/Kconfig.projbuild +10 -0
  238. package/targets/esp32-s3-m5stack-papers3/main/app_main.cpp +96 -0
  239. package/targets/esp32-s3-m5stack-papers3/main/audio_stub.cpp +27 -0
  240. package/targets/esp32-s3-m5stack-papers3/main/buttons.cpp +49 -0
  241. package/targets/esp32-s3-m5stack-papers3/main/display.cpp +706 -0
  242. package/targets/esp32-s3-m5stack-papers3/main/i2c.cpp +36 -0
  243. package/targets/esp32-s3-m5stack-papers3/main/idf_component.yml +14 -0
  244. package/targets/esp32-s3-m5stack-papers3/main/imu.cpp +351 -0
  245. package/targets/esp32-s3-m5stack-papers3/main/include/board.h +101 -0
  246. package/targets/esp32-s3-m5stack-papers3/main/include/buttons.h +8 -0
  247. package/targets/esp32-s3-m5stack-papers3/main/launcher_button.cpp +96 -0
  248. package/targets/esp32-s3-m5stack-papers3/main/power.cpp +102 -0
  249. package/targets/esp32-s3-m5stack-papers3/main/sdcard_mount.cpp +88 -0
  250. package/targets/esp32-s3-m5stack-papers3/main/touch.cpp +287 -0
  251. package/targets/esp32-s3-m5stack-papers3/partitions.csv +9 -0
  252. package/targets/esp32-s3-m5stack-papers3/sdkconfig.defaults +232 -0
  253. package/targets/esp32-s3-m5stack-sticks3/CMakeLists.txt +10 -0
  254. package/targets/esp32-s3-m5stack-sticks3/dependencies.lock +51 -0
  255. package/targets/esp32-s3-m5stack-sticks3/main/CMakeLists.txt +51 -0
  256. package/targets/esp32-s3-m5stack-sticks3/main/Kconfig.projbuild +12 -0
  257. package/targets/esp32-s3-m5stack-sticks3/main/app_main.cpp +130 -0
  258. package/targets/esp32-s3-m5stack-sticks3/main/buttons.cpp +101 -0
  259. package/targets/esp32-s3-m5stack-sticks3/main/display.cpp +1391 -0
  260. package/targets/esp32-s3-m5stack-sticks3/main/i2c.cpp +39 -0
  261. package/targets/esp32-s3-m5stack-sticks3/main/idf_component.yml +8 -0
  262. package/targets/esp32-s3-m5stack-sticks3/main/imu_stub.cpp +9 -0
  263. package/targets/esp32-s3-m5stack-sticks3/main/include/board.h +89 -0
  264. package/targets/esp32-s3-m5stack-sticks3/main/include/buttons.h +9 -0
  265. package/targets/esp32-s3-m5stack-sticks3/main/launcher_button.cpp +191 -0
  266. package/targets/esp32-s3-m5stack-sticks3/main/power.cpp +15 -0
  267. package/targets/esp32-s3-m5stack-sticks3/main/sdcard_mount.cpp +8 -0
  268. package/targets/esp32-s3-m5stack-sticks3/main/touch.cpp +65 -0
  269. package/targets/esp32-s3-m5stack-sticks3/partitions.csv +8 -0
  270. package/targets/esp32-s3-m5stack-sticks3/sdkconfig.defaults +130 -0
  271. package/targets/esp32-s3-touch-amoled-1.75/CMakeLists.txt +10 -0
  272. package/targets/esp32-s3-touch-amoled-1.75/dependencies.lock +130 -0
  273. package/targets/esp32-s3-touch-amoled-1.75/main/CMakeLists.txt +589 -0
  274. package/targets/esp32-s3-touch-amoled-1.75/main/Kconfig.projbuild +12 -0
  275. package/targets/esp32-s3-touch-amoled-1.75/main/app_main.cpp +153 -0
  276. package/targets/esp32-s3-touch-amoled-1.75/main/i2c.cpp +39 -0
  277. package/targets/esp32-s3-touch-amoled-1.75/main/idf_component.yml +9 -0
  278. package/targets/esp32-s3-touch-amoled-1.75/main/include/board.h +110 -0
  279. package/targets/esp32-s3-touch-amoled-1.75/main/include/wifi_config.h.example +5 -0
  280. package/targets/esp32-s3-touch-amoled-1.75/main/launcher_button.cpp +191 -0
  281. package/targets/esp32-s3-touch-amoled-1.75/main/touch.cpp +45 -0
  282. package/targets/esp32-s3-touch-amoled-1.75/partitions.csv +8 -0
  283. package/targets/esp32-s3-touch-amoled-1.75/sdkconfig.defaults +179 -0
  284. package/targets/esp32-s3-touch-amoled-1.8/CMakeLists.txt +10 -0
  285. package/targets/esp32-s3-touch-amoled-1.8/dependencies.lock +105 -0
  286. package/targets/esp32-s3-touch-amoled-1.8/main/CMakeLists.txt +768 -0
  287. package/targets/esp32-s3-touch-amoled-1.8/main/Kconfig.projbuild +12 -0
  288. package/targets/esp32-s3-touch-amoled-1.8/main/app_main.cpp +172 -0
  289. package/targets/esp32-s3-touch-amoled-1.8/main/i2c.cpp +39 -0
  290. package/targets/esp32-s3-touch-amoled-1.8/main/idf_component.yml +8 -0
  291. package/targets/esp32-s3-touch-amoled-1.8/main/include/board.h +83 -0
  292. package/targets/esp32-s3-touch-amoled-1.8/main/include/wifi_config.h.example +5 -0
  293. package/targets/esp32-s3-touch-amoled-1.8/main/launcher_button.cpp +191 -0
  294. package/targets/esp32-s3-touch-amoled-1.8/main/touch.cpp +41 -0
  295. package/targets/esp32-s3-touch-amoled-1.8/partitions.csv +8 -0
  296. package/targets/esp32-s3-touch-amoled-1.8/sdkconfig.defaults +179 -0
  297. package/targets/esp32-s3-touch-amoled-2.06/CMakeLists.txt +10 -0
  298. package/targets/esp32-s3-touch-amoled-2.06/dependencies.lock +64 -0
  299. package/targets/esp32-s3-touch-amoled-2.06/main/CMakeLists.txt +1121 -0
  300. package/targets/esp32-s3-touch-amoled-2.06/main/Kconfig.projbuild +12 -0
  301. package/targets/esp32-s3-touch-amoled-2.06/main/app_main.cpp +333 -0
  302. package/targets/esp32-s3-touch-amoled-2.06/main/i2c.cpp +39 -0
  303. package/targets/esp32-s3-touch-amoled-2.06/main/idf_component.yml +27 -0
  304. package/targets/esp32-s3-touch-amoled-2.06/main/include/board.h +114 -0
  305. package/targets/esp32-s3-touch-amoled-2.06/main/include/wifi_config.h.example +5 -0
  306. package/targets/esp32-s3-touch-amoled-2.06/main/launcher_button.cpp +199 -0
  307. package/targets/esp32-s3-touch-amoled-2.06/main/sdcard_mount.cpp +105 -0
  308. package/targets/esp32-s3-touch-amoled-2.06/main/touch.cpp +49 -0
  309. package/targets/esp32-s3-touch-amoled-2.06/partitions.csv +14 -0
  310. package/targets/esp32-s3-touch-amoled-2.06/sdkconfig.defaults +273 -0
  311. package/targets/esp32-s3-touch-amoled-2.41/CMakeLists.txt +10 -0
  312. package/targets/esp32-s3-touch-amoled-2.41/main/CMakeLists.txt +71 -0
  313. package/targets/esp32-s3-touch-amoled-2.41/main/Kconfig.projbuild +12 -0
  314. package/targets/esp32-s3-touch-amoled-2.41/main/idf_component.yml +27 -0
  315. package/targets/esp32-s3-touch-amoled-2.41/main/include/board.h +108 -0
  316. package/targets/esp32-s3-touch-amoled-2.41/main/include/wifi_config.h.example +5 -0
  317. package/targets/esp32-s3-touch-amoled-2.41/main/panel_reset.cpp +82 -0
  318. package/targets/esp32-s3-touch-amoled-2.41/main/touch.cpp +49 -0
  319. package/targets/esp32-s3-touch-amoled-2.41/partitions.csv +8 -0
  320. package/targets/esp32-s3-touch-amoled-2.41/sdkconfig.defaults +273 -0
  321. package/targets/rp2350-tufty-2350/CMakeLists.txt +348 -0
  322. package/targets/rp2350-tufty-2350/README.md +53 -0
  323. package/targets/rp2350-tufty-2350/boards/pimoroni_tufty2350.h +87 -0
  324. package/targets/rp2350-tufty-2350/main/bringup.cpp +187 -0
  325. package/targets/rp2350-tufty-2350/main/include/board.h +124 -0
  326. package/targets/rp2350-tufty-2350/main/rp2350_panel.cpp +428 -0
  327. package/targets/rp2350-tufty-2350/main/rp2350_panel.h +46 -0
  328. package/targets/rp2350-tufty-2350/main/st7789_parallel.pio +7 -0
  329. package/targets/rp2350-waveshare-touch-amoled-2.41/CMakeLists.txt +345 -0
  330. package/targets/rp2350-waveshare-touch-amoled-2.41/README.md +153 -0
  331. package/targets/rp2350-waveshare-touch-amoled-2.41/boards/waveshare_rp2350_touch_amoled_2_41.h +59 -0
  332. package/targets/rp2350-waveshare-touch-amoled-2.41/main/app.cpp +984 -0
  333. package/targets/rp2350-waveshare-touch-amoled-2.41/main/bringup.cpp +222 -0
  334. package/targets/rp2350-waveshare-touch-amoled-2.41/main/include/board.h +138 -0
  335. package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_gea_platform.cpp +2553 -0
  336. package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_gea_platform.h +18 -0
  337. package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_host_fetch_stub.cpp +64 -0
  338. package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_panel.cpp +677 -0
  339. package/targets/rp2350-waveshare-touch-amoled-2.41/main/rp2350_panel.h +48 -0
  340. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/rp_pico_alloc.c +354 -0
  341. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/rp_pico_alloc.h +56 -0
  342. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/tlsf/tlsf.c +1284 -0
  343. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/tlsf/tlsf.h +95 -0
  344. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/tlsf/tlsf_block_functions.h +123 -0
  345. package/targets/rp2350-waveshare-touch-amoled-2.41/main/vendor/waveshare_psram/tlsf/tlsf_common.h +127 -0
  346. package/targets/rp2350-waveshare-touch-amoled-2.41/tools/rp2350-scroll-bench.py +162 -0
  347. package/targets/rp2350-waveshare-touch-amoled-2.41/tools/rp2350-scroll-parity.py +198 -0
  348. package/targets.json +154 -0
@@ -0,0 +1,627 @@
1
+ #include "display.h"
2
+
3
+ #include "board.h"
4
+ #include "canvas.h"
5
+ #include "display_present.h"
6
+ #include "host/display_orientation.h"
7
+ #include "pixel.h"
8
+
9
+ #include <algorithm>
10
+ #include <atomic>
11
+ #include <cstddef>
12
+ #include <cstdint>
13
+ #include <cstring>
14
+
15
+ #include "esp_heap_caps.h"
16
+ #include "esp_log.h"
17
+ #include "esp_timer.h"
18
+ #include "freertos/FreeRTOS.h"
19
+ #include "freertos/semphr.h"
20
+ #include "freertos/task.h"
21
+
22
+ extern "C" {
23
+ #include "epd_driver.h"
24
+
25
+ // From components/epd_driver/gea_epd.c (not part of the vendored epd_driver.h
26
+ // API): balanced multipass recovery cycles for a charge-imbalanced panel, and
27
+ // a region-masked variant for a localized burn-in.
28
+ extern "C" void gea_epd_repair(int cycles, int fields_per_phase);
29
+ extern "C" void gea_epd_repair_region(int cycles, int fields_per_phase, int byte_lo, int byte_hi);
30
+ extern "C" void gea_epd_wash(int cycles, int fields_per_phase);
31
+ extern "C" void gea_epd_recovery_forever(void);
32
+ extern "C" void gea_epd_diagnostic_forever(void);
33
+ extern "C" void gea_epd_set_vcom_mv(unsigned mv);
34
+ extern "C" void gea_epd_enable_experimental(void);
35
+ extern "C" void gea_epd_first_light_ritual(void);
36
+ extern "C" void gea_epd_draw_full_flash(uint8_t *data);
37
+ }
38
+
39
+ namespace platform_display = gea::platform::display;
40
+ namespace orientation_detail = gea::framework::display::detail;
41
+ namespace pixel = gea::framework::graphics::pixel;
42
+
43
+ namespace gea::platform::lilygo_t5::display {
44
+
45
+ namespace {
46
+
47
+ constexpr char kTag[] = "lilygo_t5_display";
48
+
49
+ // Physical panel is 960x540 landscape (ED047TC1). Apps (the e-reader) run
50
+ // portrait 540x960, so the Canvas framebuffer is portrait and we rotate it into
51
+ // the landscape epd framebuffer at flush time (the raw panel has no controller-
52
+ // side rotation, unlike the M5Paper's IT8951).
53
+ constexpr int kControllerWidth = EPD_WIDTH; // 960
54
+ constexpr int kControllerHeight = EPD_HEIGHT; // 540
55
+ constexpr int kPortraitWidth = 540;
56
+ constexpr int kPortraitHeight = 960;
57
+ constexpr int kPortraitStride = (kPortraitWidth + 1) / 2; // 270 bytes/row
58
+ constexpr int kPortraitPackedBytes = kPortraitStride * kPortraitHeight;
59
+ constexpr int kEpdStride = kControllerWidth / 2; // 480 bytes/row
60
+ constexpr int kEpdBytes = kEpdStride * kControllerHeight; // full landscape 4bpp
61
+
62
+ // ED047TC1 4-bit brightness: 0x0 = black, 0xF = white. gea GRAY4 native values
63
+ // use the same polarity (0 = black, 15 = white), so no inversion is needed.
64
+ // Flip this if the panel comes up as a negative image.
65
+ constexpr bool kInvertGray = false;
66
+
67
+ // Reset accumulated e-paper ghosting with a full clear+redraw every N frames.
68
+ constexpr int kDefaultFullRefreshEvery = 8;
69
+
70
+ // ---- PANEL SAFETY CONFIG (per-panel; see the safety layer in gea_epd.c) -----
71
+ // The first panel was destroyed by sustained saturation DC. Replacement-panel
72
+ // protocol, in order:
73
+ // 1. Set kPanelVcomMv to the NEW panel's OWN factory calibration (the first
74
+ // panel's was 1560 — NEVER reuse another panel's value). 0 keeps every
75
+ // scan NOP-locked: the build boots but cannot drive the glass.
76
+ // 2. Flash with kFirstLightConfirmed=false: only the first-light ritual
77
+ // runs (a gentle dark band across the center). Visually confirm the band
78
+ // DARKENED. If it got lighter, the polarity is inverted — stop.
79
+ // 3. Only then set kFirstLightConfirmed=true and reflash for app rendering.
80
+ // Recovery/repair/diagnostic waveforms additionally require
81
+ // gea_epd_enable_experimental() and hard-stop after 30 minutes.
82
+ // CURRENT (first, damaged) panel: 1560 is THIS panel's own factory value and
83
+ // its polarity was visually confirmed during bring-up. When the REPLACEMENT
84
+ // panel is installed, reset these to 0 / false and follow the protocol above.
85
+ constexpr int kPanelVcomMv = 1560;
86
+ constexpr bool kFirstLightConfirmed = true;
87
+ // Boot straight into the (safety-gated) recovery treatment loop instead of
88
+ // app rendering. Recovery sessions hard-stop after 30 minutes (experimental
89
+ // wall-clock cap) — reboot or power-cycle to run another session.
90
+ constexpr bool kRecoveryOnlyBoot = true;
91
+
92
+ class DisplayBackend {
93
+ public:
94
+ static DisplayBackend &instance()
95
+ {
96
+ static DisplayBackend backend;
97
+ return backend;
98
+ }
99
+
100
+ bool init()
101
+ {
102
+ if (initialized_) return true;
103
+ mutex_ = xSemaphoreCreateMutex();
104
+ if (!mutex_) return false;
105
+
106
+ frameBuffer_ = static_cast<std::uint8_t *>(
107
+ heap_caps_calloc(kPortraitPackedBytes, 1, MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT));
108
+ epdFb_ = static_cast<std::uint8_t *>(
109
+ heap_caps_aligned_calloc(16, 1, kEpdBytes, MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT));
110
+ if (!frameBuffer_ || !epdFb_) {
111
+ ESP_LOGE(kTag, "framebuffer allocation failed (PSRAM required)");
112
+ return false;
113
+ }
114
+
115
+ // Bring up the ED047TC1 parallel driver behind the safety interlocks.
116
+ epd_init();
117
+ if (kPanelVcomMv <= 0) {
118
+ // No panel calibration configured: refuse to drive, forever. The
119
+ // safety layer NOPs every scan anyway; this loop just makes the
120
+ // state unmissable instead of silently rendering nothing.
121
+ for (;;) {
122
+ ESP_LOGE(kTag, "PANEL LOCKED: set kPanelVcomMv to THIS panel's own factory VCOM (see safety config)");
123
+ vTaskDelay(pdMS_TO_TICKS(60000));
124
+ }
125
+ }
126
+ gea_epd_set_vcom_mv(static_cast<unsigned>(kPanelVcomMv));
127
+ if (!kFirstLightConfirmed) {
128
+ gea_epd_first_light_ritual();
129
+ for (;;) {
130
+ ESP_LOGW(kTag, "FIRST-LIGHT MODE: confirm the center band darkened, then set kFirstLightConfirmed=true");
131
+ vTaskDelay(pdMS_TO_TICKS(60000));
132
+ }
133
+ }
134
+ if (kRecoveryOnlyBoot) {
135
+ ESP_LOGI(kTag, "RECOVERY build (safety-gated): treatment/rest loop, 30-min session cap, reboot for another session");
136
+ gea_epd_enable_experimental();
137
+ gea_epd_recovery_forever(); // parks itself (rails off) at the session cap
138
+ }
139
+ epd_poweron();
140
+ epd_clear();
141
+ epd_poweroff();
142
+
143
+ bindCanvas();
144
+ if (xTaskCreatePinnedToCore(refreshTaskEntry, "lilygo_t5_epd", 4096, this, 6, &refreshTask_, 1) != pdPASS) {
145
+ ESP_LOGE(kTag, "failed to start refresh task");
146
+ return false;
147
+ }
148
+ initialized_ = true;
149
+ ESP_LOGI(kTag, "LilyGo T5 ready %dx%d portrait, 16-gray, epd=%d bytes",
150
+ kPortraitWidth, kPortraitHeight, kEpdBytes);
151
+ return true;
152
+ }
153
+
154
+ bool start() { return init(); }
155
+
156
+ gea::framework::graphics::Canvas *canvas()
157
+ {
158
+ if (!initialized_) init();
159
+ return &canvas_;
160
+ }
161
+
162
+ bool framebufferIsPanelDirect() const { return false; }
163
+
164
+ void applyOrientation(gea::framework::display::DisplayOrientation)
165
+ {
166
+ if (!init()) return;
167
+ take();
168
+ bindCanvasLocked();
169
+ std::memset(frameBuffer_, 0, kPortraitPackedBytes);
170
+ canvas_.markDirty(0, 0, logicalWidth() - 1, logicalHeight() - 1);
171
+ forceFull_.store(true);
172
+ give();
173
+ }
174
+
175
+ void clear()
176
+ {
177
+ clearNoFlush();
178
+ flush();
179
+ }
180
+
181
+ void clearNoFlush()
182
+ {
183
+ if (!init()) return;
184
+ take();
185
+ std::memset(frameBuffer_, 0, kPortraitPackedBytes);
186
+ canvas_.markDirty(0, 0, logicalWidth() - 1, logicalHeight() - 1);
187
+ forceFull_.store(true);
188
+ give();
189
+ }
190
+
191
+ void flush()
192
+ {
193
+ if (!init()) return;
194
+ int x0 = 0, y0 = 0, x1 = logicalWidth() - 1, y1 = logicalHeight() - 1;
195
+ if (!forceFull_.load() && !canvas_.dirty(&x0, &y0, &x1, &y1)) return;
196
+ canvas_.resetDirty();
197
+ requestRefresh();
198
+ }
199
+
200
+ void flushRects(const platform_display::DisplayFlushRect *rects, int count)
201
+ {
202
+ if (!rects || count <= 0 || !init()) return;
203
+ canvas_.resetDirty();
204
+ requestRefresh();
205
+ }
206
+
207
+ bool streamRect(int x, int y, int w, int h, platform_display::DisplayStreamRasterFn raster, void *user)
208
+ {
209
+ if (!raster || w <= 0 || h <= 0 || !init()) return false;
210
+ const int x0 = std::max(0, x);
211
+ const int y0 = std::max(0, y);
212
+ const int x1 = std::min(logicalWidth() - 1, x + w - 1);
213
+ const int y1 = std::min(logicalHeight() - 1, y + h - 1);
214
+ if (x0 > x1 || y0 > y1) return true;
215
+ const int width = x1 - x0 + 1;
216
+ static pixel::native_t rowbuf[kPortraitWidth];
217
+ for (int row = y0; row <= y1; ++row) {
218
+ raster(rowbuf, width, 1, x0, row, user);
219
+ pixel::packed::writeUnpacked(frameBuffer_ + static_cast<std::size_t>(row) * kPortraitStride, x0, rowbuf, width);
220
+ }
221
+ canvas_.markDirty(x0, y0, x1, y1);
222
+ flush();
223
+ return true;
224
+ }
225
+
226
+ // Accept the direct-canvas present batch and rasterize it straight into the
227
+ // GRAY4 framebuffer (native_t colors are already gray4 at compile time), then
228
+ // refresh. Declining would send these to an off-screen composed buffer the
229
+ // single-framebuffer e-paper backend never blits back — so canvas apps
230
+ // (bouncing-balls' fillCirclesRgb565) would draw nothing.
231
+ bool presentCommands(const platform_display::DisplayPresentCommand *commands, int count)
232
+ {
233
+ using T = platform_display::DisplayPresentCommandType;
234
+ if (!commands || count <= 0 || !init()) return false;
235
+ take();
236
+ // A stale clip from an earlier op would drop everything outside it (the
237
+ // label at 6,23 survives; balls in the corner don't). Draw the whole batch
238
+ // against the full canvas.
239
+ canvas_.resetClip();
240
+ for (int i = 0; i < count; ++i) {
241
+ const auto &c = commands[i];
242
+ switch (c.type) {
243
+ case T::Clear:
244
+ canvas_.setGlobalAlpha(255);
245
+ // e-paper is white paper: clear to white (gray4 15) so content has
246
+ // real contrast, regardless of the app's canvas clear color.
247
+ canvas_.clear(static_cast<pixel::native_t>(15));
248
+ break;
249
+ case T::FillRectRgb565:
250
+ canvas_.setGlobalAlpha(c.fillRectRgb565.alpha);
251
+ canvas_.fillRect(c.fillRectRgb565.x, c.fillRectRgb565.y, c.fillRectRgb565.w, c.fillRectRgb565.h, c.fillRectRgb565.color);
252
+ break;
253
+ case T::StrokeRectRgb565:
254
+ canvas_.setGlobalAlpha(c.strokeRectRgb565.alpha);
255
+ canvas_.strokeRect(c.strokeRectRgb565.x, c.strokeRectRgb565.y, c.strokeRectRgb565.w, c.strokeRectRgb565.h, c.strokeRectRgb565.color);
256
+ break;
257
+ case T::FillTriangleRgb565:
258
+ canvas_.setGlobalAlpha(c.fillTriangleRgb565.alpha);
259
+ canvas_.fillTriangle(c.fillTriangleRgb565.x0, c.fillTriangleRgb565.y0, c.fillTriangleRgb565.x1, c.fillTriangleRgb565.y1,
260
+ c.fillTriangleRgb565.x2, c.fillTriangleRgb565.y2, c.fillTriangleRgb565.color);
261
+ break;
262
+ case T::FillCircleRgb565:
263
+ canvas_.setGlobalAlpha(c.fillCircleRgb565.alpha);
264
+ canvas_.fillCircle(c.fillCircleRgb565.x, c.fillCircleRgb565.y, c.fillCircleRgb565.radius, c.fillCircleRgb565.color);
265
+ break;
266
+ case T::StrokeCircleRgb565:
267
+ canvas_.setGlobalAlpha(c.strokeCircleRgb565.alpha);
268
+ canvas_.strokeCircle(c.strokeCircleRgb565.x, c.strokeCircleRgb565.y, c.strokeCircleRgb565.radius, c.strokeCircleRgb565.color);
269
+ break;
270
+ case T::FillCirclesRgb565:
271
+ canvas_.setGlobalAlpha(c.fillCirclesRgb565.alpha);
272
+ canvas_.fillCirclesRgb565(c.fillCirclesRgb565.xs, c.fillCirclesRgb565.ys, c.fillCirclesRgb565.count,
273
+ c.fillCirclesRgb565.radius, c.fillCirclesRgb565.colors);
274
+ break;
275
+ case T::FillTrianglesRgb565:
276
+ canvas_.setGlobalAlpha(c.fillTrianglesRgb565.alpha);
277
+ for (int t = 0; t < c.fillTrianglesRgb565.count; ++t) {
278
+ const auto &e = c.fillTrianglesRgb565.entries[t];
279
+ canvas_.fillTriangle(e.x0, e.y0, e.x1, e.y1, e.x2, e.y2, e.color);
280
+ }
281
+ break;
282
+ case T::DrawImage:
283
+ canvas_.setGlobalAlpha(c.drawImage.alpha);
284
+ canvas_.drawImage(c.drawImage.pixels, c.drawImage.alphaPixels, c.drawImage.srcWidth, c.drawImage.srcHeight, c.drawImage.x, c.drawImage.y);
285
+ break;
286
+ case T::DrawImageScaled:
287
+ canvas_.setGlobalAlpha(c.drawImageScaled.alpha);
288
+ canvas_.drawImage(c.drawImageScaled.pixels, c.drawImageScaled.alphaPixels, c.drawImageScaled.srcWidth, c.drawImageScaled.srcHeight,
289
+ c.drawImageScaled.x, c.drawImageScaled.y, c.drawImageScaled.w, c.drawImageScaled.h);
290
+ break;
291
+ case T::DrawImageRotated90CW:
292
+ canvas_.setGlobalAlpha(c.drawImageRotated90CW.alpha);
293
+ canvas_.drawImageRotated90CW(c.drawImageRotated90CW.pixels, c.drawImageRotated90CW.alphaPixels, c.drawImageRotated90CW.srcWidth, c.drawImageRotated90CW.srcHeight,
294
+ c.drawImageRotated90CW.x, c.drawImageRotated90CW.y, c.drawImageRotated90CW.w, c.drawImageRotated90CW.h);
295
+ break;
296
+ case T::DrawImageTiledX:
297
+ canvas_.setGlobalAlpha(c.drawImageTiledX.alpha);
298
+ canvas_.drawImageTiledX(c.drawImageTiledX.pixels, c.drawImageTiledX.alphaPixels, c.drawImageTiledX.srcWidth, c.drawImageTiledX.srcHeight,
299
+ c.drawImageTiledX.x, c.drawImageTiledX.y, c.drawImageTiledX.w);
300
+ break;
301
+ case T::FillText:
302
+ canvas_.setGlobalAlpha(255);
303
+ if (c.fillText.fontFamilyId >= 0)
304
+ canvas_.drawTextFontFamily(c.fillText.text, c.fillText.x, c.fillText.y, c.fillText.color, c.fillText.fontFamilyId, c.fillText.fontSizePx);
305
+ else
306
+ canvas_.drawText(c.fillText.text, c.fillText.x, c.fillText.y, c.fillText.color, c.fillText.scale);
307
+ break;
308
+ }
309
+ }
310
+ canvas_.setGlobalAlpha(255);
311
+ canvas_.markDirty(0, 0, logicalWidth() - 1, logicalHeight() - 1);
312
+ give();
313
+ requestRefresh();
314
+ return true;
315
+ }
316
+
317
+ void setFlushConfig(int, int) {}
318
+ int flushChunkRows() const { return logicalHeight(); }
319
+ int flushQueueDepth() const { return 1; }
320
+ int flushBufferBytes() const { return kEpdBytes; }
321
+
322
+ bool copySnapshotRgb565(std::uint16_t *dst, int capacity, int *width, int *height)
323
+ {
324
+ const int pixels = kPortraitWidth * kPortraitHeight;
325
+ if (!dst || capacity < pixels || !frameBuffer_) return false;
326
+ if (width) *width = logicalWidth();
327
+ if (height) *height = logicalHeight();
328
+ for (int i = 0; i < pixels; ++i)
329
+ dst[i] = pixel::gray4ToRgb565(pixel::packed::get(frameBuffer_, i));
330
+ return true;
331
+ }
332
+
333
+ // Packed (native GRAY4) snapshot -- frameBuffer_ is already the exact flat
334
+ // packed pixel stream (kPortraitPackedBytes = kPortraitStride*kPortraitHeight,
335
+ // and kPortraitStride == pixel::packed::rowBytes(kPortraitWidth) since
336
+ // kPortraitWidth is even), so this is a straight copy: no per-pixel unpack/
337
+ // expand to RGB565, a quarter the allocation copySnapshotRgb565 needs.
338
+ bool copySnapshotPacked(std::uint8_t *dst, int byteCapacity, int *width, int *height)
339
+ {
340
+ if (!dst || byteCapacity < kPortraitPackedBytes || !frameBuffer_) return false;
341
+ if (width) *width = logicalWidth();
342
+ if (height) *height = logicalHeight();
343
+ std::memcpy(dst, frameBuffer_, static_cast<std::size_t>(kPortraitPackedBytes));
344
+ return true;
345
+ }
346
+
347
+ int countNonBlackPixels() const
348
+ {
349
+ int count = 0;
350
+ const int pixels = kPortraitWidth * kPortraitHeight;
351
+ for (int i = 0; frameBuffer_ && i < pixels; ++i)
352
+ if (pixel::packed::get(frameBuffer_, i) != 0) ++count;
353
+ return count;
354
+ }
355
+
356
+ void setBrightness(int) {}
357
+ int brightness() const { return 100; }
358
+ platform_display::DisplayFlushPerfStats flushStats() const { return stats_; }
359
+ void flushStatsReset() { stats_ = {}; }
360
+ const char *flushStageName() const { return refreshInFlight_.load() ? "epd-refresh" : "idle"; }
361
+
362
+ std::uint16_t *backgroundCache(int *capacity) { return scratch(backgroundCache_, backgroundAttempted_, capacity); }
363
+ std::uint16_t *backdropCache(int *capacity) { return scratch(backdropCache_, backdropAttempted_, capacity); }
364
+
365
+ void setRefreshConfig(int fullEvery, int hardCap, int)
366
+ {
367
+ if (fullEvery >= 0) fullRefreshEvery_ = fullEvery;
368
+ (void)hardCap;
369
+ ESP_LOGI(kTag, "refresh config fullEvery=%d", fullRefreshEvery_);
370
+ }
371
+
372
+ void requestFullRefresh()
373
+ {
374
+ if (!init()) return;
375
+ forceFull_.store(true);
376
+ requestRefresh();
377
+ }
378
+
379
+ void setQualityGrayscale(bool enabled) { qualityGrayscale_.store(enabled); }
380
+ void setFullOnCover(bool enabled) { fullOnCover_.store(enabled); }
381
+ void rebindCanvasToFramebuffer() { bindCanvas(); }
382
+
383
+ private:
384
+ DisplayBackend() = default;
385
+
386
+ int logicalWidth() const { return orientation_detail::DisplayOrientationState::width(); }
387
+ int logicalHeight() const { return orientation_detail::DisplayOrientationState::height(); }
388
+
389
+ void take() { if (mutex_) xSemaphoreTake(mutex_, portMAX_DELAY); }
390
+ void give() { if (mutex_) xSemaphoreGive(mutex_); }
391
+
392
+ void bindCanvas() { take(); bindCanvasLocked(); give(); }
393
+ void bindCanvasLocked()
394
+ {
395
+ canvas_.bindPixels(frameBuffer_, kPortraitWidth, kPortraitHeight, kPortraitWidth);
396
+ }
397
+
398
+ std::uint16_t *scratch(std::uint16_t *&buffer, bool &attempted, int *capacity)
399
+ {
400
+ const int pixels = kPortraitWidth * kPortraitHeight;
401
+ if (!attempted) {
402
+ attempted = true;
403
+ buffer = static_cast<std::uint16_t *>(
404
+ heap_caps_malloc(pixels * sizeof(std::uint16_t), MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT));
405
+ }
406
+ if (capacity) *capacity = buffer ? pixels : 0;
407
+ return buffer;
408
+ }
409
+
410
+ void requestRefresh()
411
+ {
412
+ pendingSeq_.fetch_add(1, std::memory_order_release);
413
+ if (refreshTask_) xTaskNotifyGive(refreshTask_);
414
+ }
415
+
416
+ // Rotate the portrait GRAY4 framebuffer (540x960, gea nibble order: even x =
417
+ // high nibble) into the landscape epd framebuffer (960x540, epd nibble order:
418
+ // even x = low nibble). 90 degrees clockwise: physical(px,py) = (ly, 539-lx).
419
+ // The map is a bijection over every physical pixel, so no pre-clear is needed.
420
+ void rotatePortraitToLandscape()
421
+ {
422
+ for (int ly = 0; ly < kPortraitHeight; ++ly) {
423
+ const std::uint8_t *srow = frameBuffer_ + static_cast<std::size_t>(ly) * kPortraitStride;
424
+ const int px = ly; // physical x
425
+ const int pxHiNibble = px & 1; // odd physical x -> high nibble
426
+ std::uint8_t *pcol = epdFb_ + (px >> 1); // column base in landscape buffer
427
+ for (int lx = 0; lx < kPortraitWidth; ++lx) {
428
+ const std::uint8_t b = srow[lx >> 1];
429
+ std::uint8_t v = (lx & 1) ? (b & 0x0F) : (b >> 4); // gea gray 0..15
430
+ if (kInvertGray) v = static_cast<std::uint8_t>(15 - v);
431
+ const int py = (kPortraitWidth - 1) - lx; // 539 - lx
432
+ std::uint8_t *d = pcol + static_cast<std::size_t>(py) * kEpdStride;
433
+ *d = pxHiNibble ? static_cast<std::uint8_t>((*d & 0x0F) | (v << 4))
434
+ : static_cast<std::uint8_t>((*d & 0xF0) | v);
435
+ }
436
+ }
437
+ }
438
+
439
+ static void refreshTaskEntry(void *arg) { static_cast<DisplayBackend *>(arg)->refreshLoop(); }
440
+
441
+ void refreshLoop()
442
+ {
443
+ std::uint32_t transmitted = 0;
444
+ for (;;) {
445
+ ulTaskNotifyTake(pdTRUE, portMAX_DELAY);
446
+ const std::uint32_t seq = pendingSeq_.load(std::memory_order_acquire);
447
+ if (seq == transmitted) continue;
448
+ transmitted = seq;
449
+
450
+ refreshInFlight_.store(true);
451
+ const std::int64_t started = esp_timer_get_time();
452
+
453
+ take();
454
+ rotatePortraitToLandscape();
455
+ give();
456
+
457
+ // STAGE 0 bring-up path: correctness over speed. Each present is a
458
+ // full-panel 16-level grayscale draw (the "quality" half of the
459
+ // eventual dual-mode engine). The fast per-pixel-state 60fps path
460
+ // replaces this branch next.
461
+ const bool full = forceFull_.exchange(false) ||
462
+ (fullRefreshEvery_ > 0 && partialsSinceFull_ >= fullRefreshEvery_);
463
+ epd_poweron();
464
+ if (full) {
465
+ // Classic flashing full refresh (shake -> negative -> white ->
466
+ // image): the standard anti-ghosting sequence.
467
+ gea_epd_draw_full_flash(epdFb_);
468
+ partialsSinceFull_ = 0;
469
+ } else {
470
+ epd_draw_grayscale_image(epd_full_screen(), epdFb_);
471
+ }
472
+ epd_poweroff();
473
+ if (!full) ++partialsSinceFull_;
474
+
475
+ const std::int64_t elapsed = esp_timer_get_time() - started;
476
+ stats_.callCount++;
477
+ stats_.txUs += elapsed;
478
+ stats_.chunkCount++;
479
+ refreshInFlight_.store(false);
480
+ ESP_LOGI(kTag, "%s present %lldms", full ? "full" : "draw",
481
+ static_cast<long long>(elapsed / 1000));
482
+ }
483
+ }
484
+
485
+ SemaphoreHandle_t mutex_ = nullptr;
486
+ TaskHandle_t refreshTask_ = nullptr;
487
+ gea::framework::graphics::Canvas canvas_;
488
+ std::uint8_t *frameBuffer_ = nullptr; // portrait GRAY4 (Canvas target)
489
+ std::uint8_t *epdFb_ = nullptr; // landscape 4bpp (epd_draw target)
490
+ std::uint16_t *backgroundCache_ = nullptr;
491
+ std::uint16_t *backdropCache_ = nullptr;
492
+ std::atomic<std::uint32_t> pendingSeq_{0};
493
+ std::atomic<bool> refreshInFlight_{false};
494
+ std::atomic<bool> forceFull_{true};
495
+ std::atomic<bool> qualityGrayscale_{true};
496
+ std::atomic<bool> fullOnCover_{false};
497
+ int partialsSinceFull_ = 0;
498
+ int fullRefreshEvery_ = kDefaultFullRefreshEvery;
499
+ bool backgroundAttempted_ = false;
500
+ bool backdropAttempted_ = false;
501
+ bool initialized_ = false;
502
+ platform_display::DisplayFlushPerfStats stats_ = {};
503
+ };
504
+
505
+ } // namespace
506
+
507
+ } // namespace gea::platform::lilygo_t5::display
508
+
509
+ extern "C" void gea_epaper_set_refresh_config(
510
+ int fullEvery, int hardCap, int fastWindowMs,
511
+ const std::uint8_t *, int, const std::uint8_t *, int)
512
+ {
513
+ (void)fastWindowMs;
514
+ gea::platform::lilygo_t5::display::DisplayBackend::instance().setRefreshConfig(fullEvery, hardCap, fastWindowMs);
515
+ }
516
+
517
+ extern "C" void gea_epaper_full_refresh(void)
518
+ {
519
+ gea::platform::lilygo_t5::display::DisplayBackend::instance().requestFullRefresh();
520
+ }
521
+
522
+ extern "C" void gea_epaper_set_grayscale(int enabled)
523
+ {
524
+ gea::platform::lilygo_t5::display::DisplayBackend::instance().setQualityGrayscale(enabled != 0);
525
+ }
526
+
527
+ extern "C" void gea_epaper_set_full_on_cover(int enabled)
528
+ {
529
+ gea::platform::lilygo_t5::display::DisplayBackend::instance().setFullOnCover(enabled != 0);
530
+ }
531
+
532
+ extern "C" std::uint16_t *gea_bg_cache(int *capacity)
533
+ {
534
+ return gea::platform::lilygo_t5::display::DisplayBackend::instance().backgroundCache(capacity);
535
+ }
536
+
537
+ extern "C" std::uint16_t *gea_backdrop_cache(int *capacity)
538
+ {
539
+ return gea::platform::lilygo_t5::display::DisplayBackend::instance().backdropCache(capacity);
540
+ }
541
+
542
+ namespace gea::platform::display {
543
+
544
+ namespace {
545
+
546
+ using Backend = gea::platform::lilygo_t5::display::DisplayBackend;
547
+ gea::framework::graphics::Canvas *drawingCanvas() { return Backend::instance().canvas(); }
548
+
549
+ } // namespace
550
+
551
+ bool Display::init() { return Backend::instance().init(); }
552
+ bool Display::start() { return Backend::instance().start(); }
553
+ gea::framework::graphics::Canvas *Display::canvas() { return Backend::instance().canvas(); }
554
+ bool Display::framebufferIsPanelDirect() { return false; }
555
+ void Display::clear() { Backend::instance().clear(); }
556
+ void Display::clearNoFlush() { Backend::instance().clearNoFlush(); }
557
+ void Display::print(const char *) {}
558
+ void Display::flush() { Backend::instance().flush(); }
559
+ void Display::flushRects(const DisplayFlushRect *rects, int count, bool) { Backend::instance().flushRects(rects, count); }
560
+ bool Display::streamRect(int x, int y, int w, int h, DisplayStreamRasterFn raster, void *user) { return Backend::instance().streamRect(x, y, w, h, raster, user); }
561
+ bool Display::present(const DisplayPresentCommand *commands, int count) { return Backend::instance().presentCommands(commands, count); }
562
+ void Display::rebindCanvasToFramebuffer() { Backend::instance().rebindCanvasToFramebuffer(); }
563
+ void Display::setFlushConfig(int rows, int depth) { Backend::instance().setFlushConfig(rows, depth); }
564
+ void Display::reserveInternal(std::size_t) {}
565
+ bool Display::setHighBrightnessMode(bool) { return false; }
566
+ bool Display::highBrightnessMode() { return false; }
567
+ void Display::applyPendingInternalReserve() {}
568
+ int Display::flushChunkRows() { return Backend::instance().flushChunkRows(); }
569
+ int Display::flushQueueDepth() { return Backend::instance().flushQueueDepth(); }
570
+ int Display::flushBufferBytes() { return Backend::instance().flushBufferBytes(); }
571
+ void Display::pushClip(int x, int y, int w, int h) { if (auto *c = drawingCanvas()) c->pushClip(x, y, w, h); }
572
+ void Display::popClip() { if (auto *c = drawingCanvas()) c->popClip(); }
573
+ void Display::resetClip() { if (auto *c = drawingCanvas()) c->resetClip(); }
574
+ void Display::setAlpha(std::uint8_t alpha) { if (auto *c = drawingCanvas()) c->setGlobalAlpha(alpha); }
575
+ std::uint8_t Display::alpha() { return drawingCanvas() ? drawingCanvas()->globalAlpha() : 255; }
576
+ int Display::brightness() { return Backend::instance().brightness(); }
577
+ void Display::setBrightness(int value) { Backend::instance().setBrightness(value); }
578
+ void Display::setVSync(bool) {}
579
+ bool Display::vsyncEnabled() { return false; }
580
+ void Display::vsyncWaitForFrame() {}
581
+ void Display::invalidate() {}
582
+ void Display::clip(int *x0, int *y0, int *x1, int *y1) { if (auto *c = drawingCanvas()) c->currentClip(x0, y0, x1, y1); }
583
+ void Display::fillRect(int x, int y, int w, int h, pixel::native_t color) { if (auto *c = drawingCanvas()) c->fillRect(x, y, w, h, color); }
584
+ void Display::scrollRect(int x, int y, int w, int h, int dx, int dy) { if (auto *c = drawingCanvas()) c->scrollRect(x, y, w, h, dx, dy); }
585
+ void Display::resetScrollRegion() {}
586
+ void Display::strokeRect(int x, int y, int w, int h, pixel::native_t color) { if (auto *c = drawingCanvas()) c->strokeRect(x, y, w, h, color); }
587
+ void Display::fillCircle(int x, int y, int r, pixel::native_t color) { if (auto *c = drawingCanvas()) c->fillCircle(x, y, r, color); }
588
+ void Display::strokeCircle(int x, int y, int r, pixel::native_t color) { if (auto *c = drawingCanvas()) c->strokeCircle(x, y, r, color); }
589
+ void Display::drawLine(int x0, int y0, int x1, int y1, pixel::native_t color) { if (auto *c = drawingCanvas()) c->drawLine(x0, y0, x1, y1, color); }
590
+ void Display::drawArc(int x, int y, int r, int start, int end, pixel::native_t color) { if (auto *c = drawingCanvas()) c->drawArc(x, y, r, start, end, color); }
591
+ void Display::fillTriangle(int x0, int y0, int x1, int y1, int x2, int y2, pixel::native_t color) { if (auto *c = drawingCanvas()) c->fillTriangle(x0, y0, x1, y1, x2, y2, color); }
592
+ void Display::drawText(const char *text, int x, int y, pixel::native_t color, float scale) { if (auto *c = drawingCanvas()) c->drawText(text, x, y, color, scale); }
593
+ void Display::drawTextFont(const char *text, int x, int y, pixel::native_t color, int font) { if (auto *c = drawingCanvas()) c->drawTextFont(text, x, y, color, font); }
594
+ void Display::drawTextFontFamily(const char *text, int x, int y, pixel::native_t color, int family, int size) { if (auto *c = drawingCanvas()) c->drawTextFontFamily(text, x, y, color, family, size); }
595
+ void Display::setPixel(int x, int y, pixel::native_t color) { if (auto *c = drawingCanvas()) c->fillRect(x, y, 1, 1, color); }
596
+ void Display::fillRoundedRect(int x, int y, int w, int h, int tl, int tr, int br, int bl, pixel::native_t color) { if (auto *c = drawingCanvas()) c->fillRoundedRect(x, y, w, h, tl, tr, br, bl, color); }
597
+ void Display::fillRoundedRectBoxesRgb565(const std::int16_t *xs, const std::int16_t *ys, int count, int w, int h, int tl, int tr, int br, int bl, const pixel::native_t *colors) { if (auto *c = drawingCanvas()) c->fillRoundedRectBoxesRgb565(xs, ys, count, w, h, tl, tr, br, bl, colors); }
598
+ void Display::strokeRoundedRect(int x, int y, int w, int h, int tl, int tr, int br, int bl, int lw, pixel::native_t color) { if (auto *c = drawingCanvas()) c->strokeRoundedRect(x, y, w, h, tl, tr, br, bl, lw, color); }
599
+ void Display::blitImage(const pixel::native_t *src, const std::uint8_t *alpha, int sw, int sh, int x, int y) { if (auto *c = drawingCanvas()) c->drawImage(src, alpha, sw, sh, x, y); }
600
+ void Display::blitImageScaled(const pixel::native_t *src, const std::uint8_t *alpha, int sw, int sh, int x, int y, int w, int h) { if (auto *c = drawingCanvas()) c->drawImage(src, alpha, sw, sh, x, y, w, h); }
601
+ void Display::setWorldOverlay(const std::uint16_t *, int, int, int, int) {}
602
+ void Display::setWorldScroll(int) {}
603
+ void Display::flushStatsRead(std::int64_t *us, int *calls, int *pixels)
604
+ {
605
+ const auto stats = Backend::instance().flushStats();
606
+ if (us) *us = stats.totalUs;
607
+ if (calls) *calls = stats.callCount;
608
+ if (pixels) *pixels = stats.pixelCount;
609
+ }
610
+ DisplayFlushPerfStats Display::flushPerfStatsRead() { return Backend::instance().flushStats(); }
611
+ void Display::flushStatsReset() { Backend::instance().flushStatsReset(); }
612
+ const char *Display::flushStageName() { return Backend::instance().flushStageName(); }
613
+ int Display::flushStageChunk() { return 0; }
614
+ DisplayFlushStageDetail Display::flushStageDetail() { return {}; }
615
+ bool Display::copySnapshotRgb565(std::uint16_t *dst, int capacity, int *w, int *h, bool) { return Backend::instance().copySnapshotRgb565(dst, capacity, w, h); }
616
+ bool Display::copySnapshotPacked(std::uint8_t *dst, int byteCapacity, int *w, int *h, bool) { return Backend::instance().copySnapshotPacked(dst, byteCapacity, w, h); }
617
+ int Display::countNonBlackPixels(bool) { return Backend::instance().countNonBlackPixels(); }
618
+
619
+ // The canvas draws directly into the packed 4bpp framebuffer, so the presented
620
+ // copy IS the live frame; a retained-snapshot re-replay would read packed
621
+ // storage as unpacked and lie.
622
+ extern "C" bool geaDisplaySnapshotPrefersPresented() { return true; }
623
+
624
+ void applyOrientation(gea::framework::display::DisplayOrientation orientation) { Backend::instance().applyOrientation(orientation); }
625
+ bool autoRotateAllowed() { return false; }
626
+
627
+ } // namespace gea::platform::display
@@ -0,0 +1,36 @@
1
+ #include "i2c.h"
2
+
3
+ #include "board.h"
4
+
5
+ #include "driver/i2c_master.h"
6
+ #include "esp_err.h"
7
+ #include "esp_log.h"
8
+
9
+ namespace {
10
+
11
+ constexpr char kTag[] = "lilygo_t5_i2c";
12
+ i2c_master_bus_handle_t primaryBus = nullptr;
13
+
14
+ } // namespace
15
+
16
+ gea::platform::i2c::Bus gea::platform::i2c::Bus::primary()
17
+ {
18
+ if (primaryBus) return Bus(primaryBus);
19
+
20
+ i2c_master_bus_config_t config = {};
21
+ config.i2c_port = -1;
22
+ config.sda_io_num = gea::platform::board::i2c.sda;
23
+ config.scl_io_num = gea::platform::board::i2c.scl;
24
+ config.clk_source = I2C_CLK_SRC_DEFAULT;
25
+ config.glitch_ignore_cnt = 7;
26
+ config.flags.enable_internal_pullup = true;
27
+
28
+ const esp_err_t err = i2c_new_master_bus(&config, &primaryBus);
29
+ if (err != ESP_OK) {
30
+ ESP_LOGE(kTag, "I2C init failed: %s", esp_err_to_name(err));
31
+ primaryBus = nullptr;
32
+ return Bus(nullptr);
33
+ }
34
+ ESP_LOGI(kTag, "I2C ready SDA=%d SCL=%d", static_cast<int>(config.sda_io_num), static_cast<int>(config.scl_io_num));
35
+ return Bus(primaryBus);
36
+ }
@@ -0,0 +1,4 @@
1
+ dependencies:
2
+ espressif/esp_lcd_touch_gt911: '^1'
3
+ idf:
4
+ version: '>=5.3'
@@ -0,0 +1,20 @@
1
+ // M5Paper v1.1 has no IMU. Keep the accelerometer surface deterministic so
2
+ // apps can feature-detect through zero readings without a missing platform TU.
3
+ #include "imu.h"
4
+
5
+ namespace gea::platform::sensors {
6
+
7
+ void Accelerometer::init() {}
8
+ void Accelerometer::close() {}
9
+ void Accelerometer::calibrateBias() {}
10
+ int Accelerometer::tiltX() { return 0; }
11
+ int Accelerometer::tiltY() { return 0; }
12
+ double Accelerometer::accelerationX() { return 0.0; }
13
+ double Accelerometer::accelerationY() { return 0.0; }
14
+ double Accelerometer::accelerationZ() { return 0.0; }
15
+ double Accelerometer::gyroscopeX() { return 0.0; }
16
+ double Accelerometer::gyroscopeY() { return 0.0; }
17
+ double Accelerometer::gyroscopeZ() { return 0.0; }
18
+ void Accelerometer::setWebTilt(int, int) {}
19
+
20
+ } // namespace gea::platform::sensors