fossilesque@mander.xyz to Programmer Humor@lemmy.mlEnglish · 21 hours agoNot incorrect.mander.xyzexternal-linkmessage-square45fedilinkarrow-up1519arrow-down113cross-posted to: programmer_humor@programming.dev
arrow-up1506arrow-down1external-linkNot incorrect.mander.xyzfossilesque@mander.xyz to Programmer Humor@lemmy.mlEnglish · 21 hours agomessage-square45fedilinkcross-posted to: programmer_humor@programming.dev
minus-squareanomnom@sh.itjust.workslinkfedilinkEnglisharrow-up4·16 hours ago Assembly: you are a cyborg. Or programming a tiny microcontroller to blink a led as efficient as possible.
minus-squareTimeSquirrel@kbin.melroy.orglinkfedilinkarrow-up4·15 hours agoSomething wrong with: #include <Arduino.h> void loop() { digitalWrite(13, HIGH); delay(1000); digitalWrite(13, LOW); delay(1000); } ? 😂🤮
minus-squareScrath@lemmy.dbzer0.comlinkfedilinkarrow-up5·8 hours agoObviously 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
Or programming a tiny microcontroller to blink a led as efficient as possible.
Something wrong with:
#include <Arduino.h> void loop() { digitalWrite(13, HIGH); delay(1000); digitalWrite(13, LOW); delay(1000); }
? 😂🤮
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