• Running my desk lamp code, I'm having a very strange issue....

    When powered by the USB port on a computer, it runs flawlessly for days.

    When powered by a USB charger, it freezes (setBusyIndicator LED is on continuously) after a short time.

    What could cause this behavior?

    Code is here: https://github.com/SpenceKonde/AzzyProje­cts/blob/master/GraphProject/DeskControl­ler/DeskController.js

    I'm wondering if it's related to the:
    USB.setConsole(true);

    And is getting unhappy because there's nothing connected to the USB. In this case, how can I make it do USB serial if USB is connected, and if not, not send the console to Serial1, which will be connected to something that will be broken by any console output?

About

Avatar for DrAzzy @DrAzzy started