Add explicit chip select thingy
This commit is contained in:
parent
9c65f1e588
commit
31a372e641
1 changed files with 137 additions and 130 deletions
|
@ -130,6 +130,13 @@ void setup() {
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
Serial.println(F("Starting"));
|
Serial.println(F("Starting"));
|
||||||
|
|
||||||
|
#define PIN_CS 10
|
||||||
|
#define PIN_CS_2 3
|
||||||
|
pinMode(PIN_CS, OUTPUT);
|
||||||
|
pinMode(PIN_CS_2, OUTPUT);
|
||||||
|
digitalWrite(PIN_CS, LOW); // We want to talk to the RFM 95
|
||||||
|
digitalWrite(PIN_CS_2, HIGH);
|
||||||
|
|
||||||
#ifdef VCC_ENABLE
|
#ifdef VCC_ENABLE
|
||||||
// For Pinoccio Scout boards
|
// For Pinoccio Scout boards
|
||||||
pinMode(VCC_ENABLE, OUTPUT);
|
pinMode(VCC_ENABLE, OUTPUT);
|
||||||
|
|
Loading…
Reference in a new issue