test avoid bulled game

Dependencies:   C12832_lcd LCD_fonts mbed mbed-rtos

Committer:
th_mbed
Date:
Mon Dec 12 10:19:12 2016 +0000
Revision:
23:33d7efd62537
Child:
25:a08a1f5fbb6a
add converter

Who changed what in which revision?

UserRevisionLine numberNew 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 }