Documentation wish list - flashing LEDs

Posted on
  • I'll figure it out, but it would be helpful to others to have Try 6 example in https://www.espruino.com/Flashing+Lights be a quick blink every x secs type of flash.

    Asymmetric setting of the pin. Just a quick-blink to indicate a particular state is engaged. For example, if my Motion-Detection state is detecting motion, I would prefer quick-flash rather than full-on blue.

    1100000000110000000011000000001100000000
    
  • Good point. Actually not even mentioned there is digitalPulse:

    digitalPulse(LED3,1,[10,500,10,500,10]);
    

    That'll flash 3 times quickly.

  • Well, I am glad I saw your note early. I was building out a modification to Try-4 building out my custom wave pattern when I saw your suggestion.

    Your way is MUCH easier :)

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

Documentation wish list - flashing LEDs

Posted by Avatar for HeneryH_(Henery_Hawk) @HeneryH_(Henery_Hawk)

Actions