Quellcode durchsuchen

Change default CE pin from 16 to 4 (#371)

* Change default CE pin from 16 to 4

* Update README.md

* Update README.md

Co-Authored-By: slootjes <robertslootjes@gmail.com>
Robert Slootjes vor 7 Jahren
Ursprung
Commit
60c924c3ad
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 2 2
      README.md
  2. 1 1
      lib/Settings/Settings.h

+ 2 - 2
README.md

@@ -49,11 +49,11 @@ Both modules are SPI devices and should be connected to the standard SPI pins on
 
 ##### NRF24L01+
 
-[This guide](https://www.mysensors.org/build/connect_radio#nrf24l01+-&-esp8266) details how to connect an NRF24 to an ESP8266. By default GPIO 16 for CE and GPIO 15 for CSN are used, but these can be configured later. When following the guide to connect the antenna, make sure to change "CE / PKT pin" from 4 to 16.
+[This guide](https://www.mysensors.org/build/connect_radio#nrf24l01+-&-esp8266) details how to connect an NRF24 to an ESP8266. By default GPIO 4 for CE and GPIO 15 for CSN are used, but these can be configured later.
 
 ##### LT8900
 
-Connect SPI pins (CS, SCK, MOSI, MISO) to appropriate SPI pins on the ESP8266. With default settings, connect RST to GPIO 0, and PKT to GPIO 16.
+Connect SPI pins (CE, SCK, MOSI, MISO) to appropriate SPI pins on the ESP8266. With default settings, connect RST to GPIO 0, PKT to GPIO 16, CE to GPIO 4, and CSN to GPIO 15.  Make sure to properly configure these if using non-default pinouts.
 
 #### Setting up the ESP
 

+ 1 - 1
lib/Settings/Settings.h

@@ -72,7 +72,7 @@ public:
     adminUsername(""),
     adminPassword(""),
     // CE and CSN pins from nrf24l01
-    cePin(16),
+    cePin(4),
     csnPin(15),
     resetPin(0),
     ledPin(-2),