just some playground for me to try stuff

This commit is contained in:
KonradIT
2024-10-14 22:32:45 +02:00
parent 52f999a640
commit d9b6c45842
2 changed files with 16 additions and 0 deletions
+2
View File
@@ -32,6 +32,8 @@ lib_deps =
build_flags =
-DHELTEC_POWER_BUTTON
-DHELTEC
-DARDUINO_USB_CDC_ON_BOOT=1
-DARDUINO_USB_MODE=1
[env:heltec_wifi_lora_32_V3_433]
platform = espressif32
+14
View File
@@ -548,6 +548,20 @@ void drone_sound_alarm(void *arg, Event &e);
void setup(void)
{
// Initialize serial communication
Serial.begin(9600);
// Wait for serial port to open
while (!Serial)
{
; // Wait for serial port to connect. Needed for native USB port only
}
char test2[32] = {0x24, 0x58, 0x3c, 0x0, 0x0, 0x50, 0x10, 0x0, 0x4b,
0x6f, 0x6e, 0x72, 0x61, 0x64, 0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xdd};
Serial.write(test2);
#ifdef LILYGO
setupBoards(); // true for disable U8g2 display library
delay(500);