test avoid bulled game
Dependencies: C12832_lcd LCD_fonts mbed mbed-rtos
Diff: Converter.cpp
- Revision:
- 40:ec5c1b305b9a
- Parent:
- 39:e8d6dd3c75c7
--- a/Converter.cpp Tue Dec 13 11:55:17 2016 +0000 +++ b/Converter.cpp Tue Dec 13 13:32:44 2016 +0000 @@ -31,34 +31,13 @@ char_map[i] = 0; } -// for(int i = 0; i < LCD_X; i++){ -// printf("line %d height: ",i); -// for(int j = 0; j < LCD_Y; j++){ -// printf("%d ",map[j][i]); -// } -// printf("\n"); -// } -// printf("\n"); - - for(int i = 0; i < LCD_Y; i++){ for(int j = 0; j < LCD_X; j++){ int index = (i*LCD_X + j)/CHAR_SIZE; - //char_map[index] |= map[i][j] << ((CHAR_SIZE - 1) - index % CHAR_SIZE); char_map[index] |= map[i][j] << ((CHAR_SIZE - 1) - (i*LCD_X + j) % CHAR_SIZE); } } - -// for(int i = 0; i < len; i++){ -// if(i % 16 == 0){ -// printf("\n"); -// printf("line %d ", i); -// } -// printf("%d ", char_map[i]); -// } -// -// printf("\n"); - + //return char_map; Bitmap bitmap_converted = { LCD_X,