fossilesque@mander.xyz to Programmer Humor@lemmy.mlEnglish · 13 hours agoNot incorrect.mander.xyzimagemessage-square31fedilinkarrow-up1385arrow-down18cross-posted to: programmer_humor
arrow-up1377arrow-down1imageNot incorrect.mander.xyzfossilesque@mander.xyz to Programmer Humor@lemmy.mlEnglish · 13 hours agomessage-square31fedilinkcross-posted to: programmer_humor
minus-squareanomnom@sh.itjust.workslinkfedilinkEnglisharrow-up4·8 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-up3·7 hours agoSomething wrong with: #include <Arduino.h> void loop() { digitalWrite(13, HIGH); delay(1000); digitalWrite(13, LOW); delay(1000); } ? 😂🤮
minus-squareScrath@lemmy.dbzer0.comlinkfedilinkarrow-up1·32 minutes 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