MRK Wifi 1010 serial is different

MRK Wifi 1010 serial is different

2022/02/20 Computer Engineering 0

MRK Wifi 1010 serial is different than Nano and Uno, the usb in serial and in D13/14 are separate, so code them this way

#include "wiring_private.h"

void setup() {
  Serial.begin(9600, SERIAL_8N1);
  Serial1.begin(9600, SERIAL_8N1);
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
  Serial.println("Peter");
  Serial1.println("Peter");
  digitalWrite(LED_BUILTIN, HIGH);
  delay(1000);
  digitalWrite(LED_BUILTIN, LOW);
  delay(1000);
}

Leave a Reply

Your email address will not be published.