mirror of
https://github.com/pyrou/X10RF-Arduino.git
synced 2026-07-27 19:56:18 +00:00
Arduino boards support
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#include <x10rf.h>
|
||||
#include <Energia.h>
|
||||
#define tx 11 // Pin number for the 433mhz OOK transmitter
|
||||
#define reps 1 // Number of times that a RF command must be repeated.
|
||||
#define ledpin BLUE_LED // Pin for the led that blinks when a command is send. (0 = no blink)
|
||||
#define tx 7 // Pin number for the 433mhz OOK transmitter
|
||||
#define reps 5 // Number of times that a RF command must be repeated.
|
||||
#define ledpin 13 //BLUE_LED // Pin for the led that blinks when a command is send. (0 = no blink)
|
||||
|
||||
|
||||
x10rf myx10 = x10rf(tx,ledpin,reps);
|
||||
@@ -12,7 +12,15 @@ Tested on a TI Stellarpad (LM4F120H5QR) and Energia 0101E0010. This should also
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <Energia.h>
|
||||
|
||||
#if defined(ARDUINO) && ARDUINO >= 100
|
||||
#include "Arduino.h"
|
||||
#elif defined(ENERGIA) // LaunchPad, FraunchPad and StellarPad specific
|
||||
#include "Energia.h"
|
||||
#else
|
||||
#include "WProgram.h"
|
||||
#endif
|
||||
|
||||
#include "x10rf.h"
|
||||
|
||||
#define X10_RF_SB_LONG 8960 // Start burts (leader) = 9ms
|
||||
|
||||
@@ -15,10 +15,15 @@ Tested on a TI Stellarpad (LM4F120H5QR) and Energia 0101E0010. This should also
|
||||
#ifndef x10rf_h
|
||||
#define x10rf_h
|
||||
|
||||
//#include "Arduino.h"
|
||||
//#include "Energia.h"
|
||||
#include <stdlib.h>
|
||||
#include <Energia.h>
|
||||
|
||||
#if defined(ARDUINO) && ARDUINO >= 100
|
||||
#include "Arduino.h"
|
||||
#elif defined(ENERGIA) // LaunchPad, FraunchPad and StellarPad specific
|
||||
#include "Energia.h"
|
||||
#else
|
||||
#include "WProgram.h"
|
||||
#endif
|
||||
|
||||
class x10rf
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user