• TimeSquirrel@kbin.melroy.org
    link
    fedilink
    arrow-up
    6
    ·
    2 days ago

    Something wrong with:

    #include <Arduino.h>
    
    
    void loop()  {
    digitalWrite(13, HIGH);
    delay(1000);
    digitalWrite(13, LOW);
    delay(1000);
    }
    

    ? 😂🤮

    • Scrath@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      11
      ·
      1 day ago

      Obviously the only correct way to blink an LED is to use a hardware timer to trigger a DMA transfer which stores a bit in the pin toggle register at a set interval

      • anomnom@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        2
        ·
        21 hours ago

        yeah! Or or use the interrupt pins and a 555 timer! both options are better than python though at least.