08-19-2024, 12:04 AM
there have code.
[Arduino IDE demo source code for KC868-A6]--#09-RS485_code
|
08-19-2024, 12:04 AM
there have code.
09-10-2024, 10:07 AM
buen dia estoy probando el rs485 , puedo usar este codigo donde pongo los pines de manera dinamica
este es el fragmento de mi codigo #define RXD2 16 #define TXD2 19 const int ledPin = 22; void setup() { delay(10); // Conectar WiFi WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) delay(500); // Note the format for setting a serial port is as follows: Serial2.begin(baud-rate, protocol, RX pin, TX pin); Serial.begin(9600); //Serial1.begin(9600, SERIAL_8N1, RXD2, TXD2); Serial2.begin(9600, SERIAL_8N1, RXD2, TXD2);
09-10-2024, 10:53 AM
what problem?
09-10-2024, 11:04 AM
(This post was last modified: 09-10-2024, 11:19 AM by sistemasyusa.)
Que no me funciona, ya edita el archivo HardwareSerial.cpp envío la imagen
Code: #define RXD2 16 |
« Next Oldest | Next Newest »
|
Users browsing this thread: |