697
Not incorrect. (mander.xyz)
you are viewing a single comment's thread
view the rest of the comments
[-] TimeSquirrel@kbin.melroy.org 7 points 3 months ago

Something wrong with:

#include <Arduino.h>


void loop()  {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}

? 😂🤮

[-] Scrath@lemmy.dbzer0.com 12 points 3 months 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 3 points 3 months ago

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

this post was submitted on 28 Feb 2025
697 points (97.8% liked)

Programmer Humor

36513 readers
268 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS