Demo entry 6777950

uart

   

Submitted by leabs on Dec 11, 2018 at 17:44
Language: C. Code size: 332 Bytes.

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial1.begin(115200);
  delay(10000);
  Serial.println("Arduino starting...");
}

void loop() {
  Serial1.write("{adc}");
  Serial.println("ADC: " + Serial1.readString());
  delay(3000);
  Serial1.write("{toggle}");
  delay(3000);
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).