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,23 @@
#include "Dezibot.h"
Dezibot dezibot;
const uint16_t cycleMillis = 2e4;
void setup() {
// put your setup code here, to run once:
dezibot.infraredLight.begin();
}
void loop() {
// put your main code here, to run repeatedly:
// Just turn the lights on alternating each five seconds, to get the consumption
dezibot.infraredLight.front.turnOn();
delay(cycleMillis);
dezibot.infraredLight.front.turnOff();
dezibot.infraredLight.bottom.turnOn();
delay(cycleMillis);
//Turn off and wait a little to measure baseline consumption
dezibot.infraredLight.bottom.turnOff();
delay(cycleMillis);
}