This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This code is based on the Atmel Corporation Manchester | |
Coding Basics Application Note. | |
http://www.atmel.com/dyn/resources/prod_documents/doc9164.pdf | |
Quotes from the application note: | |
"Manchester coding states that there will always be a transition of the message signal | |
at the mid-point of the data bit frame. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String readString; | |
void setup() { | |
Serial.begin(9600); // Ouvre le port série en 9600 | |
} | |
void loop() { | |
while (Serial.available()) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SoftwareSerial.h> | |
const int rxPin = 1; | |
const int txPin = 0; | |
String temp = "TEMP:52"; | |
SoftwareSerial serial(rxPin, txPin); | |
void setup() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String readString; | |
void setup() { | |
Serial.begin(9600); | |
Serial1.begin(9600); | |
} | |
void loop() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Description: Récepteur / Emetteur de code 433.92Mhz | |
Auteur : Sarrailh Rémi | |
Licence : Gplv3 | |
Mode Apprentissage qui envoie sur le port | |
série le code en décimal | |
Mode envoi qui reçoit sur le port série le code en décimal | |
et l'envoi à l'émetteur |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Envoi massif de codes 433.92Mhz | |
Auteur: Sarrailh Rémi (maditnerd) | |
License : Gplv3 | |
Description: | |
Ce code permet d'envoyer séquentiellement les codes | |
présent dans codes.txt | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Récupérateur de codes 433.92Mhz | |
Auteur: Sarrailh Rémi (maditnerd) | |
License : Gplv3 | |
Description: | |
Ce code permet de récupérer le code renvoyé par une télécommande en 433.92Mhz | |
puis de l'enregistrer dans un fichier texte | |
Ce code ne marchera pas si le code est protégé contre le "Replay" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Author: Sarrailh Remi | |
Description: This program sends a decimal code which could be read by an Arduino or any RF Receiver. | |
Licence : GplV3 | |
For More informations on this licence: | |
http://www.tldrlegal.com/l/GPL3 | |
Usage: ./sender decimal_code | |
Ex: ./sender 213212 (length doesn't matter) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import serial | |
import string | |
import os | |
#Recuperation du dernier port serie | |
list_dev = os.listdir("/dev") | |
i = 0 | |
while i < len(list_dev): | |
if list_dev[i][:-1] == "ttyACM": | |
lastserial = list_dev[i] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Sarrailh Remi - Copyright GPLv3 | |
#This code compile C++ codes with wiringPI and RCSwitch Library | |
#For code.cpp | |
#Do rcc codename | |
#For ease of use copy it in /usr/local/bin | |
gcc $1.cpp -o $1 RCSwitch.cpp -lwiringPi | |