test avoid bulled game

Dependencies:   C12832_lcd LCD_fonts mbed mbed-rtos

Converter.cpp

Committer:
th_mbed
Date:
2016-12-12
Revision:
23:33d7efd62537
Child:
25:a08a1f5fbb6a

File content as of revision 23:33d7efd62537:

#include "convert.h"
#include "models.h"
#include "point.h"

#define CHAR_SIZE 8

Bitmap Converter::convert(int[LCD_Y][] map){
    char char_map[LCD_Y*LCD_X/CHAR_SIZE];
    for(int i = 0; i < LCD_Y; i++){
        for(int j = 0; j < LCD_X; j++){
            char_map[(i*LCD_X+j)/CHAR_SIZE + 1] |= map[i][j] << ;
        }
    }
    
}