I2C improvements and fixes (#201)
- Show I2C device name in I2C Scanner app - Register various I2C devices from board implementations - Fix M5Stack Core2 power status - Fix pre-allocation issue in `hal::Device`
This commit is contained in:
committed by
GitHub
parent
2e61aea93c
commit
c0f4738abe
@@ -13,7 +13,7 @@
|
||||
#define TAG "unphone_display"
|
||||
#define BUFFER_SIZE (UNPHONE_LCD_HORIZONTAL_RESOLUTION * UNPHONE_LCD_DRAW_BUFFER_HEIGHT * LV_COLOR_DEPTH / 8)
|
||||
|
||||
extern UnPhoneFeatures unPhoneFeatures;
|
||||
extern std::shared_ptr<UnPhoneFeatures> unPhoneFeatures;
|
||||
|
||||
bool UnPhoneDisplay::start() {
|
||||
TT_LOG_I(TAG, "Starting");
|
||||
@@ -47,7 +47,7 @@ bool UnPhoneDisplay::start() {
|
||||
|
||||
if (displayHandle != nullptr) {
|
||||
TT_LOG_I(TAG, "Finished");
|
||||
unPhoneFeatures.setBacklightPower(true);
|
||||
unPhoneFeatures->setBacklightPower(true);
|
||||
return true;
|
||||
} else {
|
||||
TT_LOG_I(TAG, "Failed");
|
||||
|
||||
Reference in New Issue
Block a user