Moderators: adafruit_support_bill, adafruit
void drawdigit(uint8_t x, uint8_t y, uint8_t d, uint8_t inverted) {
blitsegs_rom(x, y, zero_p+d*DIGIT_HEIGHT*4, 64, inverted);
}void drawdigit(uint8_t x, uint8_t y, uint8_t d, uint8_t inverted) {
blitsegs_rom(x, y, zero_p+d*DIGIT_HEIGHT*4, DIGIT_HEIGHT, inverted);
}Downloaded image: BMP (24, 54) RGB
0, 5, 0, 6,
0, 4, 0, 5,
0, 3, 0, 4,
0, 2, 0, 3,
0, 1, 0, 2,
0, 1, 0, 2,
0, 1, 0, 2,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 1, 0, 2,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 1,
0, 0, 0, 2,
0, 5, 0, 6,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 1, 0, 2,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 1, 0, 2,
0, 1, 0, 2,
0, 1, 0, 2,
0, 2, 0, 3,
0, 3, 0, 4,
0, 4, 0, 5,
0, 5, 0, 6,driverblock@ubuntu:~/Documents/CaitSith2-monochron-62c389d/firmware/digits$ ls
0.bmp 2.bmp 4.bmp 6.bmp 8.bmp rle-in.c segmenter.py
1.bmp 3.bmp 5.bmp 7.bmp 9.bmp seg2rle.c
driverblock@ubuntu:~/Documents/CaitSith2-monochron-62c389d/firmware/digits$ python segmenter.py 0.bmp
Downloaded image: BMP (28, 64) 1
12, 15, 255, 255,
10, 17, 255, 255,
9, 18, 255, 255,
8, 11, 16, 19,
7, 11, 16, 20,
6, 10, 17, 21,
6, 10, 17, 21,
5, 10, 17, 22,
5, 10, 17, 22,
4, 10, 17, 23,
4, 9, 18, 23,
3, 9, 18, 24,
3, 9, 18, 24,
3, 9, 18, 24,
2, 9, 18, 24,
2, 9, 18, 25,
2, 9, 18, 25,
2, 9, 18, 25,
2, 9, 18, 25,
1, 9, 18, 26,
1, 9, 18, 26,
1, 9, 18, 26,
1, 9, 18, 26,
1, 9, 18, 26,
1, 9, 18, 26,
1, 9, 18, 26,
1, 9, 18, 26,
1, 9, 18, 26,
1, 9, 18, 26,
0, 9, 18, 27,
0, 9, 18, 27,
0, 9, 18, 27,
0, 9, 18, 27,
0, 9, 18, 27,
0, 9, 18, 27,
0, 9, 18, 27,
1, 9, 18, 26,
1, 9, 18, 26,
1, 9, 18, 26,
1, 9, 18, 26,
1, 9, 18, 26,
1, 9, 18, 26,
1, 9, 18, 26,
1, 9, 18, 26,
1, 9, 18, 26,
2, 9, 18, 25,
2, 9, 18, 25,
2, 9, 18, 25,
2, 9, 18, 25,
2, 9, 18, 24,
3, 9, 18, 24,
3, 9, 18, 24,
3, 9, 18, 24,
4, 9, 18, 23,
4, 10, 17, 23,
5, 10, 17, 22,
5, 10, 17, 22,
6, 10, 17, 21,
6, 10, 17, 21,
7, 11, 16, 20,
8, 11, 16, 19,
9, 18, 255, 255,
10, 17, 255, 255,
12, 15, 255, 255,
driverblock@ubuntu:~/Documents/CaitSith2-monochron-62c389d/firmware/digits$
Evans-MacBook-Pro:digits evan$ ls
0.bmp 3.bmp 6.bmp 9.bmp
1.bmp 4.bmp 7.bmp segmenter.py
2.bmp 5.bmp 8.bmp
Evans-MacBook-Pro:digits evan$ python segmenter.py 0.bmp
Downloaded image: BMP (24, 54) RGB
0, 5, 0, 6,
0, 4, 0, 5,
0, 3, 0, 4,
0, 2, 0, 3,
0, 1, 0, 2,
0, 1, 0, 2,
0, 1, 0, 2,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 1, 0, 2,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 1,
0, 0, 0, 2,
0, 5, 0, 6,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 2,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 1, 0, 2,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 0, 0, 1,
0, 1, 0, 2,
0, 1, 0, 2,
0, 1, 0, 2,
0, 2, 0, 3,
0, 3, 0, 4,
0, 4, 0, 5,
0, 5, 0, 6,Users browsing this forum: No registered users and 2 guests