Compare commits

..

No commits in common. "af67a9ce6bbb96d1cf95b8c5286d04171d80edd6" and "bcbd0e26882800a0c0f6f45d991851676b110ef1" have entirely different histories.

1 changed files with 4 additions and 23 deletions

View File

@ -1,40 +1,21 @@
/*
==== CUIZZMASTER ====
Basé sur Arduino Nano (Atmel MEGA328P) - Service Slave Seulement
Basé sur Arduino Uno R3 (Atmel MEGA328P)
*/
#include <Arduino.h>
#include <SoftwareSerial.h>
// Définition des PIN
#define CUIZZ_VERSION "1.0"
#define CUIZZ_HC12SERIAL_RX 11
#define CUIZZ_HC12SERIAL_TX 10
SoftwareSerial HC12(CUIZZ_HC12SERIAL_RX,CUIZZ_HC12SERIAL_TX);
SoftwareSerial HC12(CUIZZ_HC12SERIAL_RX,CUIZZ_HC12SERIAL_TX)
void setup() {
// Initialisation
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
HC12.begin(9600);
// Initialisation Slave ONLY
Serial.print("CUIZZMASTER - v");
Serial.println(CUIZZ_VERSION);
Serial.println("INIT OK");
// put your setup code here, to run once:
}
void loop() {
if (HC12.available()) {
Serial.write(HC12.read());
}
if (Serial.available()) {
HC12.write(Serial.read());
}
// put your main code here, to run repeatedly:
}