SLAVE FIN

This commit is contained in:
Profouzors (LE) 2022-11-03 10:55:02 +01:00
parent 7cb87432f3
commit af67a9ce6b
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ Basé sur Arduino Nano (Atmel MEGA328P) - Service Slave Seulement
#define CUIZZ_HC12SERIAL_TX 10
SoftwareSerial HC12(CUIZZ_HC12SERIAL_RX,CUIZZ_HC12SERIAL_TX)
SoftwareSerial HC12(CUIZZ_HC12SERIAL_RX,CUIZZ_HC12SERIAL_TX);
void setup() {
// Initialisation
@ -32,7 +32,7 @@ void setup() {
void loop() {
if (HC12.available()) {
Serial.write(mySerial.read());
Serial.write(HC12.read());
}
if (Serial.available()) {
HC12.write(Serial.read());