General area when it fits no where else

Moderator: Mmiscool

User avatar
By Mmiscool
#51743 Those functions are available in the arduino environement. Esp basic handles all io throug the io function.
User avatar
By forlotto
#51822 So for instance as mmiscool says

io(pi,pinno) is pin input

io(po,pinno,1 or 0) is pin output

D numbers were made to make it easier for the nodemcu if you look at the beginners guide I created you will see how this lays out.
Code: Select all  if (PinDesignaor == "D0")  pin = 16;
  if (PinDesignaor == "D1")  pin = 5;
  if (PinDesignaor == "D2")  pin = 4;
  if (PinDesignaor == "D3")  pin = 0;
  if (PinDesignaor == "D4")  pin = 2;
  if (PinDesignaor == "D5")  pin = 14;
  if (PinDesignaor == "D6")  pin = 12;
  if (PinDesignaor == "D7")  pin = 13;
  if (PinDesignaor == "D8")  pin = 15;
  if (PinDesignaor == "RX")  pin = 3;
  if (PinDesignaor == "TX")  pin = 1;

- See more at: viewtopic.php?f=40&t=6732#sthash.6hpDBZyK.dpuf

PS upgrade to version 3.17 it fixes a crap ton of issues that all users were and are having also I highly suggest a donation this build was huge and many many hours of work was accomplished in the last 48 hours it is insane how stable things are even the flasher is now hands free flashing for nodemcu!

To donate visit: : HERE and click the yellow donate button finally the foundation of everything is back online ;)

This should also fix all your if then issues as well you were having ;)