Add explicit chip select thingy

This commit is contained in:
Starbeamrainbowlabs 2019-06-24 11:58:59 +01:00
parent 9c65f1e588
commit 31a372e641

View file

@ -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);