diff --git a/platformio.ini b/platformio.ini index cd694ff..e7425b8 100644 --- a/platformio.ini +++ b/platformio.ini @@ -12,3 +12,4 @@ platform = espressif32 board = esp32-c3-devkitc-02 framework = arduino +monitor_speed = 115200 diff --git a/src/main.cpp b/src/main.cpp index e65e48a..a002a19 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6,7 +6,7 @@ #include "pins.h" -#define BLINKRATE 500 +#define BLINKRATE 1000 #define BLE_SERVER_NAME "Software Release" long lastBlink = 0; @@ -15,6 +15,7 @@ BLEServer* pServer = NULL; void setup() { + Serial.begin(115200); pinMode(LED, OUTPUT); BLEDevice::init(BLE_SERVER_NAME); @@ -22,10 +23,13 @@ void setup() { pServer = BLEDevice::createServer(); BLEota.begin(pServer); + delay(1000); + Serial.println("Started!"); } void loop() { if ((millis() - lastBlink) > BLINKRATE) { + Serial.println(digitalRead(LED)); digitalWrite(LED, !digitalRead(LED)); } } \ No newline at end of file