GPIO3 is now input pull up
This commit is contained in:
parent
3a5fa64663
commit
0293fe3064
@ -55,7 +55,7 @@ void setup() {
|
|||||||
Serial.begin(115200, SERIAL_8N1, SERIAL_TX_ONLY);
|
Serial.begin(115200, SERIAL_8N1, SERIAL_TX_ONLY);
|
||||||
//We set the RXD0 as a GPIO
|
//We set the RXD0 as a GPIO
|
||||||
pinMode(D9, FUNCTION_3);
|
pinMode(D9, FUNCTION_3);
|
||||||
pinMode(D9, INPUT);
|
pinMode(D9, INPUT_PULLUP);
|
||||||
attachInterruptArg(D9,&(NRFIRQsHandler), (void *)&IRQFlag, FALLING);
|
attachInterruptArg(D9,&(NRFIRQsHandler), (void *)&IRQFlag, FALLING);
|
||||||
//We set the WiFi part up :
|
//We set the WiFi part up :
|
||||||
gotIp = WiFi.onStationModeGotIP(&(gotIpFunc));
|
gotIp = WiFi.onStationModeGotIP(&(gotIpFunc));
|
||||||
|
Loading…
Reference in New Issue
Block a user