mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-07-05 10:04:31 +02:00
Power management progress
This commit is contained in:
@ -3,12 +3,14 @@
|
||||
|
||||
Dezibot dezibot = Dezibot();
|
||||
|
||||
const uint16_t cycleTime = 5e3; //5000 ms = 5 s
|
||||
|
||||
void setup() {
|
||||
#ifdef DEBUG
|
||||
Serial.begin(112500);
|
||||
while (!Serial) {
|
||||
; /* Wait for USB-CDC Serial init to complete. */
|
||||
}
|
||||
#ifdef DEBUG
|
||||
dezibot.display.begin();
|
||||
dezibot.display.println("Debug enabled.");
|
||||
Serial.println("Debug enabled.");
|
||||
@ -31,6 +33,10 @@ void handle_receive(String &message) {
|
||||
|
||||
void loop() {
|
||||
/* Continuously send to consume power on TX */
|
||||
dezibot.communication.sendMessage("Power Test Message");
|
||||
for(int i=0; i<cycleTime; i++) {
|
||||
dezibot.communication.sendMessage("Power Test Message");
|
||||
delay(1);
|
||||
}
|
||||
delay(cycleTime);
|
||||
|
||||
}
|
Reference in New Issue
Block a user