Merge branch 'master' of https://github.com/LowPowerLab/RFM69
This commit is contained in:
commit
8f8b14cfe7
|
|
@ -7,8 +7,7 @@
|
|||
|
||||
#include <RFM69.h> //get it here: https://www.github.com/lowpowerlab/rfm69
|
||||
#include <SPI.h> //get it here: https://github.com/lowpowerlab/spiflash
|
||||
#include <LowPower.h> //get library from: https://github.com/rocketscream/Low-Power
|
||||
//writeup here: http://www.rocketscream.com/blog/2011/07/04/lightweight-low-power-arduino-library/
|
||||
#include <LowPower.h> //get library from: https://github.com/LowPowerLab/LowPower
|
||||
|
||||
#define NODEID 18 //unique for each node on same network
|
||||
#define NETWORKID 100 //the same on all nodes that talk to each other
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ See [this tutorial](http://learn.adafruit.com/arduino-tips-tricks-and-techniques
|
|||
- The library and examples are continuously improved as bugs and stability issues are discovered. Be sure to check back often for changes.
|
||||
- Moteino boards are loaded with fuses that will delay startup. This means that other boards like Duemilanove/UNO might need a delay() in the setup() function before doing anything - to allow the transceiver to power up.
|
||||
|
||||
###Saple usage
|
||||
###Sample usage
|
||||
- [Node](https://github.com/LowPowerLab/RFM69/blob/master/Examples/Node/Node.ino)
|
||||
- [Gateway](https://github.com/LowPowerLab/RFM69/blob/master/Examples/Gateway/Gateway.ino)
|
||||
|
||||
|
|
|
|||
4
RFM69.h
4
RFM69.h
|
|
@ -37,7 +37,7 @@
|
|||
#define RF69_SPI_CS SS // SS is the SPI slave select pin, for instance D10 on atmega328
|
||||
|
||||
// INT0 on AVRs should be connected to RFM69's DIO0 (ex on Atmega328 it's D2, on Atmega644/1284 it's D2)
|
||||
#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) || defined(__AVR_ATmega88) || defined(__AVR_ATmega8__) || defined(__AVR_ATmega88__)
|
||||
#if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) || defined(__AVR_ATmega88) || defined(__AVR_ATmega8__) || defined(__AVR_ATmega88__) || defined(__AVR_ATmega32U4__)
|
||||
#define RF69_IRQ_PIN 2
|
||||
#define RF69_IRQ_NUM 0
|
||||
#elif defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__)
|
||||
|
|
@ -133,4 +133,4 @@ class RFM69 {
|
|||
void unselect();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue