this post was submitted on 28 Feb 2025
673 points (98.1% liked)

Programmer Humor

33740 readers
114 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 7 points 3 days ago (1 children)

Something wrong with:

#include <Arduino.h>


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

? ๐Ÿ˜‚๐Ÿคฎ

[โ€“] [email protected] 11 points 3 days ago (1 children)

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

[โ€“] [email protected] 2 points 2 days ago

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