refactoring

This commit is contained in:
2024-03-18 20:50:10 +01:00
parent 326d0f66b0
commit a68f74559f
4 changed files with 17 additions and 9 deletions

7
rgb-driver/canvasSize.h Normal file
View File

@ -0,0 +1,7 @@
#ifndef _CANVAS_SIZE_H_
#define _CANVAS_SIZE_H_
#define CANVAS_WIDTH 10
#define CANVAS_HEIGHT 11
#endif // _CANVAS_SIZE_H_

View File

@ -1,5 +1,7 @@
#include <msp430g2553.h>
#include "colors.h"
#include "canvasSize.h"
#define PC r0
#define SP r1
@ -59,7 +61,7 @@
.section ".data"
screendata:
.rept 110 ;; number of leds in hardward
.rept CANVAS_HEIGHT*CANVAS_WIDTH ;; number of leds in hardward
.byte 0
.endr
screendataend: