tetris/rgb-driver/colors.S

56 lines
2.2 KiB
ArmAsm
Raw Permalink Normal View History

2024-02-27 16:58:43 +01:00
#include "colors.h"
.section ".rodata","a"
2024-02-27 18:59:57 +01:00
;; color definitions according to
;; https://learn.sparkfun.com/tutorials/lilypad-protosnap-plus-activity-guide/3-custom-color-mixing
2024-02-27 16:58:43 +01:00
colors:
.global colors
;; red, green, blue, padding
2024-05-18 20:38:54 +02:00
.byte 0x00, 0x00, 0x00, 0 ;; off
2024-05-19 21:42:39 +02:00
.byte 0x00>>5, 0x00>>5, 0xff>>5, 0 ;; blue
.byte 0x00>>5, 0xff>>5, 0x00>>5, 0 ;; green
.byte 0xff>>5, 0x80>>5, 0x00>>5, 0 ;; orange
.byte 0x80>>5, 0x00>>5, 0xff>>5, 0 ;; violet
.byte 0x00>>5, 0xff>>5, 0xff>>5, 0 ;; cyan
.byte 0xff>>5, 0xff>>5, 0x00>>5, 0 ;; yellow
.byte 0xff>>5, 0x00>>5, 0x00>>5, 0 ;; red
.byte 0xff>>5, 0xff>>5, 0xff>>5, 0 ;; white
.byte 0x00>>4, 0x00>>4, 0xff>>4, 0 ;; blue
.byte 0x00>>4, 0xff>>4, 0x00>>4, 0 ;; green
.byte 0xff>>4, 0x80>>4, 0x00>>4, 0 ;; orange
.byte 0x80>>4, 0x00>>4, 0xff>>4, 0 ;; violet
.byte 0x00>>4, 0xff>>4, 0xff>>4, 0 ;; cyan
.byte 0xff>>4, 0xff>>4, 0x00>>4, 0 ;; yellow
.byte 0xff>>4, 0x00>>4, 0x00>>4, 0 ;; red
.byte 0xff>>4, 0xff>>4, 0xff>>4, 0 ;; white
.byte 0x00>>3, 0x00>>3, 0xff>>3, 0 ;; blue
.byte 0x00>>3, 0xff>>3, 0x00>>3, 0 ;; green
.byte 0xff>>3, 0x80>>3, 0x00>>3, 0 ;; orange
.byte 0x80>>3, 0x00>>3, 0xff>>3, 0 ;; violet
.byte 0x00>>3, 0xff>>3, 0xff>>3, 0 ;; cyan
.byte 0xff>>3, 0xff>>3, 0x00>>3, 0 ;; yellow
.byte 0xff>>3, 0x00>>3, 0x00>>3, 0 ;; red
.byte 0xff>>3, 0xff>>3, 0xff>>3, 0 ;; white
.byte 0x00>>2, 0x00>>2, 0xff>>2, 0 ;; blue
.byte 0x00>>2, 0xff>>2, 0x00>>2, 0 ;; green
.byte 0xff>>2, 0x80>>2, 0x00>>2, 0 ;; orange
.byte 0x80>>2, 0x00>>2, 0xff>>2, 0 ;; violet
.byte 0x00>>2, 0xff>>2, 0xff>>2, 0 ;; cyan
.byte 0xff>>2, 0xff>>2, 0x00>>2, 0 ;; yellow
.byte 0xff>>2, 0x00>>2, 0x00>>2, 0 ;; red
.byte 0xff>>2, 0xff>>2, 0xff>>2, 0 ;; white
.byte 0x00>>1, 0x00>>1, 0xff>>1, 0 ;; blue
.byte 0x00>>1, 0xff>>1, 0x00>>1, 0 ;; green
.byte 0xff>>1, 0x80>>1, 0x00>>1, 0 ;; orange
.byte 0x80>>1, 0x00>>1, 0xff>>1, 0 ;; violet
.byte 0x00>>1, 0xff>>1, 0xff>>1, 0 ;; cyan
.byte 0xff>>1, 0xff>>1, 0x00>>1, 0 ;; yellow
.byte 0xff>>1, 0x00>>1, 0x00>>1, 0 ;; red
.byte 0xff>>1, 0xff>>1, 0xff>>1, 0 ;; white
2024-02-27 16:58:43 +01:00