Commit Graph

20 Commits

Author SHA1 Message Date
Daniel
56e649bd4e Replace tabs with four spaces. Remove trailing whitespace. 2023-05-16 04:50:38 -07:00
Daniel
58998da466 Add breaks to switch/case statements. 2023-05-16 04:36:45 -07:00
paulchilton
6d87e2c74d Changed brightness log so it only logs when the value is changed 2023-01-01 10:00:49 +00:00
paulchilton
97b6f0115f Moved restart code to the correct place for the M5Tough 2022-12-31 20:51:02 +00:00
paulchilton
25fcd23de9 Removed log entry 2022-12-31 20:48:08 +00:00
paulchilton
cb8a0e8364 Update axp192.cpp 2022-12-31 20:47:27 +00:00
paulchilton
21078e5565 Update axp192.cpp 2022-12-31 20:45:39 +00:00
paulchilton
4c91690d8d Update axp192.cpp 2022-12-31 20:41:23 +00:00
paulchilton
253aaccfa7 Update axp192.cpp 2022-12-31 20:34:23 +00:00
paulchilton
93a89eb95d Testing different placement of auto-restart 2022-12-31 20:19:45 +00:00
paulchilton
fe779b8631 Update axp192.cpp 2022-12-31 20:13:15 +00:00
paulchilton
a6ea145770 Added check for first power on and reset so the display properly initialises 2022-12-31 20:08:15 +00:00
paulchilton
fc022332b3 Added M5Tough Option 2022-12-31 17:06:46 +00:00
Chris Metcalfe
35e0c12938 fix brightness of m5core2 screen
m5core2 uses DC-DC3 to control brightness rather than using LDO2. DC-DC3 is controlled by the 7 least significant bits in the 0x27 register; the most significant bit is reserved. As a result the brightness value shifts left 3 places rather than 4. in order to set the register I read the entire byte, logical AND with 0x80 to clear all bits except the reserved bit, logical OR with the shifted brightness value.

added brightness to the sample m5core2 config
2022-10-10 19:05:18 -05:00
marty@dingo.sh
401605df03 initial commit 2022-09-03 17:13:33 +01:00
Shish
1a46c6e86d Use uint8_t for byte data 2022-01-05 22:01:14 +00:00
Gonzalo Paniagua Javier
2f9a66b23e Fix compilation with current esphome code
Fixes errors including:
src/esphome/components/axp192/axp192.cpp: In member function 'void esphome::axp192::AXP192Component::DeepSleep(uint64_t)':
src/esphome/components/axp192/axp192.cpp:355:35: error: 'gpio_num_t' was not declared in this scope
     esp_sleep_enable_ext0_wakeup((gpio_num_t)37, LOW);
                                   ^
src/esphome/components/axp192/axp192.cpp:355:50: error: 'LOW' was not declared in this scope
     esp_sleep_enable_ext0_wakeup((gpio_num_t)37, LOW);
                                                  ^
2021-12-30 16:53:01 -05:00
abmantis
6a77ae993a Add brightness config support
This is far from perfect, but its a start. Ideally, the value would be
set in the display component instead.
2020-03-07 00:37:57 +00:00
Airy André
5b6660dbbf Better battery level - still wrong but at least that's some sample sensor for this component... 2020-02-09 11:15:53 +01:00
Airy André
18b807347d First version of components 2020-02-09 10:06:06 +01:00