mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-05-19 02:51:47 +02:00
Integrate OLED display in Power management
This commit is contained in:
parent
5407543658
commit
dfa778024b
@ -14,6 +14,9 @@
|
|||||||
|
|
||||||
|
|
||||||
void Display::begin(void){
|
void Display::begin(void){
|
||||||
|
Power::waitForCurrentAllowance(
|
||||||
|
PowerParameters::PowerConsumers::DISPLAY_OLED, PowerParameters::CurrentConsumptions::CURRENT_DISPLAY
|
||||||
|
,DISPLAY_MAX_EXECUTION_DELAY_MS, NULL);
|
||||||
//set Mux Ratio
|
//set Mux Ratio
|
||||||
sendDisplayCMD(muxRatio);
|
sendDisplayCMD(muxRatio);
|
||||||
sendDisplayCMD(0x3f);
|
sendDisplayCMD(0x3f);
|
||||||
|
@ -11,9 +11,13 @@
|
|||||||
|
|
||||||
#ifndef Display_h
|
#ifndef Display_h
|
||||||
#define Display_h
|
#define Display_h
|
||||||
#include <stdint.h>
|
#include "../power/Power.h"
|
||||||
#include <Arduino.h>
|
|
||||||
#include "DisplayCMDs.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{
|
class Display{
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user