[FEAT] setchar. Redefinition of characters

This commit is contained in:
2021-12-03 20:10:38 +01:00
parent 72412a01bd
commit 280ca2ceca
2 changed files with 9 additions and 1 deletions

View File

@@ -287,7 +287,14 @@ uint8_t ascii(const char *str, uint8_t index) {
}
void setchar(uint8_t index, uint8_t b0, uint8_t b1, uint8_t b2, uint8_t b3, uint8_t b4, uint8_t b5, uint8_t b6, uint8_t b7) {
// [TODO]
font[index*8] = b0;
font[index*8+1] = b1;
font[index*8+2] = b2;
font[index*8+3] = b3;
font[index*8+4] = b4;
font[index*8+5] = b5;
font[index*8+6] = b6;
font[index*8+7] = b7;
}
uint8_t peek(uint16_t addr) {

View File

@@ -2,6 +2,7 @@ function init()
x, y, dx, dy = 0, 0, 1, 1
paper(COLOR_BLACK)
ink(COLOR_RED)
setchar(224, 0x18, 0x18, 0x18, 0xff, 0xff, 0x18, 0x18, 0x18)
end
function update()