Compare commits
6 Commits
use_subrou
...
1e77cdaddf
Author | SHA1 | Date | |
---|---|---|---|
1e77cdaddf | |||
d0219a3c77 | |||
2bef7bf2c2
|
|||
9f50f6010b
|
|||
c35ec0991c | |||
584e834b0d |
27
colors.S
27
colors.S
@ -1,5 +1,6 @@
|
||||
#include "colors.h"
|
||||
|
||||
#define DIMM_FACTOR 3
|
||||
.section ".rodata","a"
|
||||
;; color definitions according to
|
||||
;; https://learn.sparkfun.com/tutorials/lilypad-protosnap-plus-activity-guide/3-custom-color-mixing
|
||||
@ -9,29 +10,29 @@ colors:
|
||||
off:
|
||||
.byte 0x00, 0x00, 0x00, 0
|
||||
blue:
|
||||
.byte 0x00, 0x00, 0xff, 0
|
||||
.byte 0x00>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0
|
||||
green:
|
||||
.byte 0x00, 0xff, 0x00, 0
|
||||
.byte 0x00>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0
|
||||
orange:
|
||||
.byte 0xff, 0x80, 0x00, 0
|
||||
.byte 0xff>>DIMM_FACTOR, 0x80>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0
|
||||
rose:
|
||||
.byte 0xff, 0x00, 0x80, 0
|
||||
.byte 0xff>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0x80>>DIMM_FACTOR, 0
|
||||
magenta:
|
||||
.byte 0xff, 0x00, 0xff, 0
|
||||
.byte 0xff>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0
|
||||
violet:
|
||||
.byte 0x80, 0x00, 0xff, 0
|
||||
.byte 0x80>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0
|
||||
azure:
|
||||
.byte 0x00, 0x80, 0xff, 0
|
||||
.byte 0x00>>DIMM_FACTOR, 0x80>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0
|
||||
cyan:
|
||||
.byte 0x00, 0xff, 0xff, 0
|
||||
.byte 0x00>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0
|
||||
springgreen:
|
||||
.byte 0x00, 0xff, 0x80, 0
|
||||
.byte 0x00>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0x80>>DIMM_FACTOR, 0
|
||||
chartreuse:
|
||||
.byte 0x80, 0xff, 0x00, 0
|
||||
.byte 0x80>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0
|
||||
yellow:
|
||||
.byte 0xff, 0xff, 0x00, 0
|
||||
.byte 0xff>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0
|
||||
white:
|
||||
.byte 0xff, 0xff, 0xff, 0
|
||||
.byte 0xff>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0
|
||||
red:
|
||||
.byte 0xff, 0x00, 0x00, 0
|
||||
.byte 0xff>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0
|
||||
|
||||
|
BIN
docs/reset-circuit.jpeg
Normal file
BIN
docs/reset-circuit.jpeg
Normal file
Binary file not shown.
After Width: | Height: | Size: 966 KiB |
BIN
docs/reset-signal.png
Normal file
BIN
docs/reset-signal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.4 KiB |
4
main.S
4
main.S
@ -53,7 +53,7 @@
|
||||
|
||||
.section ".data"
|
||||
screendata:
|
||||
.rept 60
|
||||
.rept 60 ;; number of leds in hardward
|
||||
.byte 0
|
||||
.endr
|
||||
screendataend:
|
||||
@ -164,7 +164,7 @@ forwardscreen:
|
||||
mov.w data_forward_pointer, r10
|
||||
mov.b #_off, @r10
|
||||
inc.w r10
|
||||
mov.b #_green, @r10
|
||||
mov.b #_violet, @r10
|
||||
cmp.w r10, r8
|
||||
jnz forwardscreen_done
|
||||
mov.w #screendata, r10
|
||||
|
Reference in New Issue
Block a user