Integrate OLED display in Power management

This commit is contained in:
Phillip Kühne 2025-02-12 21:38:05 +01:00
parent 5407543658
commit dfa778024b
Signed by: phillip
GPG Key ID: E4C1C4D2F90902AA
2 changed files with 9 additions and 2 deletions

View File

@ -14,6 +14,9 @@
void Display::begin(void){
Power::waitForCurrentAllowance(
PowerParameters::PowerConsumers::DISPLAY_OLED, PowerParameters::CurrentConsumptions::CURRENT_DISPLAY
,DISPLAY_MAX_EXECUTION_DELAY_MS, NULL);
//set Mux Ratio
sendDisplayCMD(muxRatio);
sendDisplayCMD(0x3f);

View File

@ -11,9 +11,13 @@
#ifndef Display_h
#define Display_h
#include <stdint.h>
#include <Arduino.h>
#include "../power/Power.h"
#include "DisplayCMDs.h"
#include <Arduino.h>
#include <stdint.h>
// This execution delay is basically only used for initial activation, so it can be set to a higher value
#define DISPLAY_MAX_EXECUTION_DELAY_MS 100
class Display{
protected: