Update Measurement sketches

This commit is contained in:
2025-02-03 20:58:00 +01:00
parent b57e955dc2
commit 9acca9e5c7
4 changed files with 109 additions and 5 deletions

View File

@ -3,6 +3,17 @@
Dezibot dezibot = Dezibot();
void blip_io(int times) {
constexpr int ioPin = 17;
pinMode(ioPin, OUTPUT);
for(int i = 0; i<times; i++) {
digitalWrite(ioPin,1);
delay(500);
digitalWrite(ioPin,0);
delay(500);
}
}
void setup() {
#ifdef DEBUG
Serial.begin(112500);
@ -18,10 +29,12 @@ void setup() {
Serial.println("Set up receive. Printing incoming messages:");
Serial.println("Sending broadcast messages to generate TX power consumption:");
#endif
blip_io(1);
delay(5000);
#ifdef DEBUG
Serial.println("Starting Transmission...");
#endif
blip_io(2);
}
void handle_receive(String &message) {