test avoid bulled game
Dependencies: C12832_lcd LCD_fonts mbed mbed-rtos
Converter.cpp@24:88968d1fc9cb, 2016-12-12 (annotated)
- Committer:
- th_mbed
- Date:
- Mon Dec 12 10:44:00 2016 +0000
- Revision:
- 24:88968d1fc9cb
- Parent:
- 23:33d7efd62537
- Child:
- 25:a08a1f5fbb6a
change make stage algolism
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
th_mbed | 23:33d7efd62537 | 1 | #include "convert.h" |
th_mbed | 23:33d7efd62537 | 2 | #include "models.h" |
th_mbed | 23:33d7efd62537 | 3 | #include "point.h" |
th_mbed | 23:33d7efd62537 | 4 | |
th_mbed | 23:33d7efd62537 | 5 | #define CHAR_SIZE 8 |
th_mbed | 23:33d7efd62537 | 6 | |
th_mbed | 23:33d7efd62537 | 7 | Bitmap Converter::convert(int[LCD_Y][] map){ |
th_mbed | 23:33d7efd62537 | 8 | char char_map[LCD_Y*LCD_X/CHAR_SIZE]; |
th_mbed | 23:33d7efd62537 | 9 | for(int i = 0; i < LCD_Y; i++){ |
th_mbed | 23:33d7efd62537 | 10 | for(int j = 0; j < LCD_X; j++){ |
th_mbed | 23:33d7efd62537 | 11 | char_map[(i*LCD_X+j)/CHAR_SIZE + 1] |= map[i][j] << ; |
th_mbed | 23:33d7efd62537 | 12 | } |
th_mbed | 23:33d7efd62537 | 13 | } |
th_mbed | 23:33d7efd62537 | 14 | |
th_mbed | 23:33d7efd62537 | 15 | } |