{private constructors} Assemble [insert witty title here]

Last year we made a warning light with an Arduino programmed with assembly, this year we went further…..

This year the documentation was read, some of it was understood, and even less of it was used. But it resulted in twice the safety that we achieved last year.

This year I bring to you, two LED’s that blink alternating, all with the use of the mythical and magical language og assembly .Did you know that the following line of code means “Take my c++ variable and put into my assembly variable?

[rbit] “I” (LEDBIT2)

And did you know that this statement sets the selected bit on the port byte

sbi %[port], %[lbit]

While this statement unsets the selected bit on the port byte

cbi %[port], %[lbit]

Well I didn’t yesterday either…..
Anyway, here is a little video of our back facing warning lights in action (before they were mounted on the beast)

Applying for the badge [The assembler]

Leave a Reply

Your e-mail address will not be published. Required fields are marked *