Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Arduino source code for KC868-A32M]-04_RS485
#1
[Arduino source code for KC868-A32M]-04_RS485
Code:
/*KC868-A32M RS485*/
#define A8M_RS485_RX 15
#define A8M_RS485_TX 13
void setup() {
  Serial.begin(115200);
  Serial2.begin(115200,SERIAL_8N1,A8M_RS485_RX,A8M_RS485_TX);//A8M
  Serial2.println("A32M RS485 SEND is OK!!"); 
}

void loop() {
  while(Serial2.available()>0)
   {
    Serial2.print((char)Serial2.read());
   }
  delay(200);
}


Attached Files
.zip   KC868-A32M_RS485.zip (Size: 569 bytes / Downloads: 180)
Reply


Forum Jump:


Users browsing this thread: