You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is amazing, there are still so many things I have not realized how the work.
I would suggest to keep those pin settings for ESPXX boards as they, because changing this could break a lot of user code and pepper jsinteractive.c with ifdef like this
#if defined(ESP32) || defined(ESP8266)
// don't bother with normal inputs, as they come up in this state (ish) anyway
if (statem != JSHPINSTATE_GPIO_IN_PULLUP && statem != JSHPINSTATE_ADC_IN) {
// use getPinMode to get the correct string (remove some duplication)
JsVar *s = jswrap_io_getPinMode(pin);
if (s) cbprintf(user_callback, user_data, "pinMode(%p, %q%s);\n",pin,s,jshGetPinStateIsManual(pin)?"":", true");
jsvUnLock(s);
}
#else
// don't bother with normal inputs, as they come up in this state (ish) anyway
if (statem != JSHPINSTATE_GPIO_IN && statem != JSHPINSTATE_ADC_IN) {
// use getPinMode to get the correct string (remove some duplication)
JsVar *s = jswrap_io_getPinMode(pin);
if (s) cbprintf(user_callback, user_data, "pinMode(%p, %q%s);\n",pin,s,jshGetPinStateIsManual(pin)?"":", true");
jsvUnLock(s);
}
#endif
Please let me know if this is ok.
The text was updated successfully, but these errors were encountered:
conversation http://forum.espruino.com/comments/15534057/
It is amazing, there are still so many things I have not realized how the work.
I would suggest to keep those pin settings for ESPXX boards as they, because changing this could break a lot of user code and pepper jsinteractive.c with ifdef like this
Please let me know if this is ok.
The text was updated successfully, but these errors were encountered: