mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-07-05 02:01:42 +02:00
Update Measurement sketches
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user