Lib FT800 Modifiee

Dependents:   FT800_Lib_perso

Committer:
schnf30
Date:
Tue Feb 08 08:17:31 2022 +0000
Revision:
0:7ea2f058a713
Librairie FT800 adaptee avec drawline, Brigntness etc...

Who changed what in which revision?

UserRevisionLine numberNew contents of line
schnf30 0:7ea2f058a713 1 /* mbed Library for FTDI FT800 Enbedded Video Engine "EVE"
schnf30 0:7ea2f058a713 2 * based on Original Code Sample from FTDI
schnf30 0:7ea2f058a713 3 * ported to mbed by Peter Drescher, DC2PD 2014
schnf30 0:7ea2f058a713 4 * Released under the MIT License: http://mbed.org/license/mit */
schnf30 0:7ea2f058a713 5
schnf30 0:7ea2f058a713 6 #ifndef _FT_HAL_UTILS_H_
schnf30 0:7ea2f058a713 7 #define _FT_HAL_UTILS_H_
schnf30 0:7ea2f058a713 8
schnf30 0:7ea2f058a713 9
schnf30 0:7ea2f058a713 10 #define RGB(r, g, b) ((((vc_int32_t)(r)) << 16) | (((vc_int32_t)(g)) << 8) | (b))
schnf30 0:7ea2f058a713 11 #define SQ(v) ((v) * (v))
schnf30 0:7ea2f058a713 12 #define MIN(x,y) ((x) > (y) ? (y) : (x))
schnf30 0:7ea2f058a713 13 #define MAX(x,y) ((x) > (y) ? (x) : (y))
schnf30 0:7ea2f058a713 14 #define PLAYCOLOR 0x00A0A080
schnf30 0:7ea2f058a713 15 #define NOTE(n, sharp) (((n) - 'C') + ((sharp) * 128))
schnf30 0:7ea2f058a713 16 #define F16(s) ((vc_int32_t)((s) * 65536))
schnf30 0:7ea2f058a713 17 #define INVALID_TOUCH_XY 0x8000
schnf30 0:7ea2f058a713 18 #define ABS(x) ((x) > (0) ? (x) : (-x))
schnf30 0:7ea2f058a713 19
schnf30 0:7ea2f058a713 20 #endif /* _FT_HAL_UTILS_H_ */
schnf30 0:7ea2f058a713 21
schnf30 0:7ea2f058a713 22
schnf30 0:7ea2f058a713 23
schnf30 0:7ea2f058a713 24
schnf30 0:7ea2f058a713 25