blob: b8864c6fcd3d856d1e7b81977c673b8756221c38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <stdint.h>
#include "ubox.h"
#include "aux.h"
/**
* Put a zero terminated string on the screen using tiles.
*
* The font starts on the tileset on tile 128 and the fist char in our has
* ASCII value 31, so it is adjusted so we can use ASCII *uppercase* directly
* in our C code.
*/
void put_text(uint8_t x, uint8_t y, const uint8_t *text)
{
while (*text)
ubox_put_tile(x++, y, *text++ + 128 - 31);
}
|