SLAVE FIN
This commit is contained in:
parent
7cb87432f3
commit
af67a9ce6b
|
@ -12,7 +12,7 @@ Basé sur Arduino Nano (Atmel MEGA328P) - Service Slave Seulement
|
||||||
#define CUIZZ_HC12SERIAL_TX 10
|
#define CUIZZ_HC12SERIAL_TX 10
|
||||||
|
|
||||||
|
|
||||||
SoftwareSerial HC12(CUIZZ_HC12SERIAL_RX,CUIZZ_HC12SERIAL_TX)
|
SoftwareSerial HC12(CUIZZ_HC12SERIAL_RX,CUIZZ_HC12SERIAL_TX);
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
// Initialisation
|
// Initialisation
|
||||||
|
@ -32,7 +32,7 @@ void setup() {
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
if (HC12.available()) {
|
if (HC12.available()) {
|
||||||
Serial.write(mySerial.read());
|
Serial.write(HC12.read());
|
||||||
}
|
}
|
||||||
if (Serial.available()) {
|
if (Serial.available()) {
|
||||||
HC12.write(Serial.read());
|
HC12.write(Serial.read());
|
||||||
|
|
Loading…
Reference in New Issue