Arduino boards support

This commit is contained in:
Michael Hurni
2014-10-13 19:47:52 +02:00
parent fcb23dca53
commit fd9d988bc6
3 changed files with 20 additions and 7 deletions
@@ -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);
+9 -1
View File
@@ -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
+8 -3
View File
@@ -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
{