You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Where to start to improve this?

    It's jsiDumpHardwareInitialisation that creates the JS from pin state.

    On all other boards the default pin state is JSHPINSTATE_GPIO_IN unless they're used for something else.


    • build_platform_config should set up IS_PIN_USED_INTERNALLY so that it returns true for any pins that are actually used for internal stuff (flash/xtal/etc)
    • Ideally the default pin state should just be 'input' in order to match all the other Espruino devices. If that's not possible then adding a specific ESPxx hack to the end of jsiDumpHardwareInitialisation to check against JSHPINSTATE_GPIO_IN_PULLUP instead might do it

Avatar for Gordon @Gordon started