-->
Page 1 of 2

Using GPIO10 ( S3 ) on Nodemcu board

PostPosted: Fri Jan 06, 2017 4:53 am
by Phil colbert
Anyone know how to make this pin usable as an output ?

Ran out of pins :(

Thanks

Re: Using GPIO10 ( S3 ) on Nodemcu board

PostPosted: Fri Jan 06, 2017 5:49 am
by Phil colbert
Or disable Serial1 on D4 and use that pin?

Any ideas?

Thanks

Re: Using GPIO10 ( S3 ) on Nodemcu board

PostPosted: Fri Jan 06, 2017 9:34 am
by martinayotte
GPIO10 is used by the Flash in QIO mode, but it can be freed if you use it only in DIO and if you have some soldering skill : http://smarpl.com/content/esp8266-esp-2 ... and-gpio10

For freeing Serial1-TX, use alternate function described here wiki/doku.php?id=esp8266_gpio_pin_allocations
Quickly it would be :
Code: Select allPIN_FUNC_SELECT(PERIPHS_IO_MUX_U0TXD_U, PERIPHS_IO_MUX_U0TXD_U);


But why bother with all this when you can simply add a GPIO expander on I2C bus ?

Re: Using GPIO10 ( S3 ) on Nodemcu board

PostPosted: Fri Jan 06, 2017 3:15 pm
by torntrousers
You can use GPIO-10 if you use Flash Mode DIO. It doesn't need any de-soldering of the flash chip pin. Some info here: https://github.com/esp8266/Arduino/issues/2124

Using the Arduino IDE you need to use "Generic ESP8266 Module" to show the Flash mode setting in the Tools menu.