2 Commits

Author SHA1 Message Date
c35ec0991c dimm factor introduced 2024-03-05 17:01:53 +01:00
584e834b0d comment 2024-03-05 16:21:56 +01:00
2 changed files with 15 additions and 14 deletions

View File

@ -1,5 +1,6 @@
#include "colors.h" #include "colors.h"
#define DIMM_FACTOR 3
.section ".rodata","a" .section ".rodata","a"
;; color definitions according to ;; color definitions according to
;; https://learn.sparkfun.com/tutorials/lilypad-protosnap-plus-activity-guide/3-custom-color-mixing ;; https://learn.sparkfun.com/tutorials/lilypad-protosnap-plus-activity-guide/3-custom-color-mixing
@ -9,29 +10,29 @@ colors:
off: off:
.byte 0x00, 0x00, 0x00, 0 .byte 0x00, 0x00, 0x00, 0
blue: blue:
.byte 0x00, 0x00, 0xff, 0 .byte 0x00>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0
green: green:
.byte 0x00, 0xff, 0x00, 0 .byte 0x00>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0
orange: orange:
.byte 0xff, 0x80, 0x00, 0 .byte 0xff>>DIMM_FACTOR, 0x80>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0
rose: rose:
.byte 0xff, 0x00, 0x80, 0 .byte 0xff>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0x80>>DIMM_FACTOR, 0
magenta: magenta:
.byte 0xff, 0x00, 0xff, 0 .byte 0xff>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0
violet: violet:
.byte 0x80, 0x00, 0xff, 0 .byte 0x80>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0
azure: azure:
.byte 0x00, 0x80, 0xff, 0 .byte 0x00>>DIMM_FACTOR, 0x80>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0
cyan: cyan:
.byte 0x00, 0xff, 0xff, 0 .byte 0x00>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0
springgreen: springgreen:
.byte 0x00, 0xff, 0x80, 0 .byte 0x00>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0x80>>DIMM_FACTOR, 0
chartreuse: chartreuse:
.byte 0x80, 0xff, 0x00, 0 .byte 0x80>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0
yellow: yellow:
.byte 0xff, 0xff, 0x00, 0 .byte 0xff>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0
white: white:
.byte 0xff, 0xff, 0xff, 0 .byte 0xff>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0xff>>DIMM_FACTOR, 0
red: red:
.byte 0xff, 0x00, 0x00, 0 .byte 0xff>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0x00>>DIMM_FACTOR, 0

2
main.S
View File

@ -53,7 +53,7 @@
.section ".data" .section ".data"
screendata: screendata:
.rept 60 .rept 60 ;; number of leds in hardward
.byte 0 .byte 0
.endr .endr
screendataend: screendataend: