Skip to content

Instantly share code, notes, and snippets.

@Jartza
Created January 4, 2015 16:49
Show Gist options
  • Save Jartza/2977346bc34b7c4d463e to your computer and use it in GitHub Desktop.
Save Jartza/2977346bc34b7c4d463e to your computer and use it in GitHub Desktop.
Blink
#include <avr/io.h>
start:
sbi _SFR_IO_ADDR(DDRB), 4
blink:
sbi _SFR_IO_ADDR(PINB), 4
ldi ZH, 20
loop:
subi r18, 1
brne loop
sbiw ZL, 1
brne loop
rjmp blink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment