Connection ESP32 and NRF24
-
Have bought a ESP32 Dev with 38 pins. Try to connect my NRF24, got a problem with CSN and CE, there is no standard pin. GPIO 5 for CSN is ok CE on GPIO17 is blocking u2TXD I need. Try with #define MY_RF24_CE_PIN 12 to get CE to GPIO 12 no luck. Somebody did the job before, and did succeed, how?
-
This should work:
https://github.com/mysensors/MySensors/blob/d88506fbc62dac72d6b8b08c1fa3e179143c4542/hal/architecture/ESP32/MyHwESP32.h#L26
-
@electrik no it does not, CE to 17 is just my problem, with the ESP32 wroom-32u pin 17 is the serial2 txpin I need for Nextion output. And #define MY_RF24_CE_PIN 12 does not Work.
-
And you are using the gpio numbers I guess? Can you post your sketch?
-
@electrik, yes I use gpio numbers. Sketch is very very long, I am porting it from esp8266 to esp32 wroom. Fixed different timers, from os_timer_t to hw_timer_t, less relevant, now the nrf24 switch. CE attached to gpio 17 the nrf24 Works fine, want to move to gpio 12, with the #define i mentioned, CE just stays at gpio 17
-
Is the define placed before including MySensors.h?
-
@mfalkvidd That did it, thanks