Add existing code: Power consumption test cases and Semaphore power scheduler skeleton

This commit is contained in:
2024-11-24 23:09:46 +01:00
parent 87b9fbe66f
commit e4dffe50c7
13 changed files with 522 additions and 0 deletions

View File

@ -0,0 +1,26 @@
#include "Dezibot.h"
Dezibot dezibot = Dezibot();
// How many times to run a command on the display consecutively;
const uint16_t iterations = 5000;
void setup() {
dezibot.begin();
}
void loop() {
//Typical output
dezibot.display.println("Typical output");
for(uint16_t iter=0; iter<iterations; iter++) {
dezibot.display.println(iter);
}
delay(10);
//Lots of pixels turned on
dezibot.display.invertColor();
dezibot.display.println("Inverted output");
for(uint16_t iter=0; iter<iterations; iter++) {
dezibot.display.println(iter);
}
delay(10);
}