Commit Graph

10 Commits

Author SHA1 Message Date
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