• I need to reset a device to factory defaults by driving a certain pin to low. The device manual states "Unit reset to default, active low. Drive low to reset unit to default settings." I tried hooking the pin to ground but I don't think that worked. How do I drive an Espruino pin to low to achieve this?

  • Well, I was wrong when I said hooking the pin to ground didn't work. Hooking the pin to ground did work :)

  • Connect it to ground, or do digitalWrite(pin,0);

  • or:

    pin.write(false);

    where pin is the name of the pin (e.g. B12)

  • @DrAzzy and @roy.emmerich thanks for the help.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

I need to drive a pin on a device low to factory reset the device.

Posted by Avatar for d0773d @d0773d

Actions