Line 1... |
Line 1... |
1 |
/********************************************* |
1 |
/********************************************* |
2 |
* |
2 |
* |
3 |
* RFM02 simple library |
3 |
* RFM02 simple library |
4 |
* |
4 |
* |
5 |
* $Id:$ |
5 |
* $Id: RF02.cpp 2128 2011-08-18 18:36:59Z kakl $ |
6 |
* |
6 |
* |
7 |
* code based on the code of "benedikt k." and "contrechoc" |
7 |
* code based on the code of "benedikt k." and "contrechoc" |
8 |
* |
8 |
* |
9 |
* arduino 22 |
9 |
* arduino 22 |
10 |
* |
10 |
* |
Line 30... |
Line 30... |
30 |
|
30 |
|
31 |
#define SDI 0 // SDI, -> RF02 Atmega PB0 Arduino 8 |
31 |
#define SDI 0 // SDI, -> RF02 Atmega PB0 Arduino 8 |
32 |
#define SCK 1 // SCK, -> RF02 Atmega PB1 Arduino 9 |
32 |
#define SCK 1 // SCK, -> RF02 Atmega PB1 Arduino 9 |
33 |
#define CS 2 // nSEL, -> RF02 Atmega PB2 Arduino 10 |
33 |
#define CS 2 // nSEL, -> RF02 Atmega PB2 Arduino 10 |
34 |
#define IRQ 4 // nIRQ, <- RF02 Atmega PB4 Arduino 12 |
34 |
#define IRQ 4 // nIRQ, <- RF02 Atmega PB4 Arduino 12 |
35 |
#define FSK 3 // FSK, <- RF02 Atmega PB3 Arduino ??? |
- |
|
36 |
//------------------// FSK: Pullupto VCC |
35 |
//------------------// FSK: Pullupto VCC |
37 |
|
36 |
|
38 |
#ifndef cbi |
37 |
#ifndef cbi |
39 |
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) |
38 |
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) |
40 |
#endif |
39 |
#endif |