Ray casting engine implemented on the mBuino platform using the ST7735 LCD controller.

Dependencies:   LCD_ST7735 mbed

Ray casting engine written to test performance of the LCD_ST7735 library I wrote as a learning exercise on the mbed platform.

Committer:
taylorza
Date:
Sat Oct 25 04:23:24 2014 +0000
Revision:
3:e32f5c25a352
Parent:
0:303768292f44
Updated the engine to use the latest LCD_ST7735 library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
taylorza 0:303768292f44 1 #ifndef __COMMON_H__
taylorza 0:303768292f44 2 #define __COMMON_H__
taylorza 0:303768292f44 3
taylorza 0:303768292f44 4 #ifndef PI
taylorza 0:303768292f44 5 #define PI 3.14159265358979323846f
taylorza 0:303768292f44 6 #endif
taylorza 0:303768292f44 7
taylorza 0:303768292f44 8 #define PI2 6.28318530717958647692f
taylorza 0:303768292f44 9
taylorza 0:303768292f44 10 #define CELL_SIZE 32
taylorza 0:303768292f44 11 #define CELL_SIZE_SHIFT 5
taylorza 0:303768292f44 12 #define CELL_SIZE_MASK 0x1f
taylorza 0:303768292f44 13 #define CELL_BIT_MASK 0xffe0
taylorza 0:303768292f44 14
taylorza 0:303768292f44 15 #define FLOAT2INT(x) ((int)((x) + 0.5))
taylorza 0:303768292f44 16
taylorza 0:303768292f44 17 #endif //__COMMON_H__