/* CCs

The following code is based on the work of the following people.

MeshTastic:
https://meshtastic.org/docs/getting-started/

SGP30:
AdaFruit example code - https://learn.adafruit.com/adafruit-sgp30-gas-tvoc-eco2-mox-sensor/arduino-code

SCD30:
AdaFruit example code from Arduino IDE

OLED Screen:
Rui Santos : https://randomnerdtutorials.com/esp32-ssd1306-oled-display-arduino-ide/

LED:
FastLED example code from Arduino IDE

VMA320
Code from here : https://learn.adafruit.com/thermistor/using-a-thermistor

Some debugging was done with ChatGPT

Code arrangement by me: Patrick Dezséri

*/

/*

#include <arduino.h>

#define RX_PIN 44 //RX Pin of your controller that will send the data to the MeshTastic Node
#define TX_PIN 43 //TX Pin of your controller that will send the data to the MeshTastic Node




void setup() {
  Serial.begin(115200);     // USB for debug
  Serial1.begin(921600, SERIAL_8N1, RX_PIN, TX_PIN);    // UART for Meshtastic node

  pinMode(LED_BUILTIN, OUTPUT);

}

void loop() {
  
  while (Serial1.available() > 0){
    // get the byte data from the Node
    char Data = Serial1.read();
    Serial.print(String(Data));
  }

  //Serial.println("0");


  delay(2000);
}

//*/