I tried the following code:
void loop() {
// put your main code here, to run repeatedly:
pinMode(2, FUNCTION_0);
digitalWrite(2, LOW);
delayMicroseconds(120);
pinMode(2, FUNCTION_2);
Serial1.begin(250000, SERIAL_8N2);
Serial1.write(100);
}
but in the Serial Terminal it doesn't send correctly. Any ideas as to what I could do?