SmartWheels self-driving race car. Designed for NXP Cup. Uses FRDM-KL25Z, area-scan camera, and simple image processing to detect and navigate any NXP spec track.
Dependencies: TSI USBDevice mbed-dev
Fork of SmartWheels by
Diff: Hardwares/ArduUTFT.h
- Revision:
- 42:c4e1606087ff
- Parent:
- 41:7b21c5e3599e
- Child:
- 44:15de535c4005
diff -r 7b21c5e3599e -r c4e1606087ff Hardwares/ArduUTFT.h --- a/Hardwares/ArduUTFT.h Thu Mar 23 23:17:51 2017 +0000 +++ b/Hardwares/ArduUTFT.h Fri Mar 24 15:44:08 2017 +0000 @@ -16,6 +16,14 @@ #define ARDUCHIP_TEST_MSG_UTFT 0x72 #define ARDUCHIP_VER_NUM_UTFT 0x61 + + +#define UTFT_DISP_X_SIZE 239 +#define UTFT_DISP_Y_SIZE 319 + +#define UTFT_LEFT 0 +#define UTFT_RIGHT 9999 +#define UTFT_CENTER 9998 void ardu_utft_init(); //We only use LANDSCAPE orientation! @@ -37,5 +45,14 @@ void ardu_utft_draw_vline(int x, int y, int l); +void ardu_utft_draw_pixel(int x, int y); + +void ardu_utft_fill_rect(int x1, int y1, int x2, int y2); + +void ardu_utft_set_font(uint8_t * font); + +void ardu_utft_print_char(char c, int x, int y); + +void ardu_utft_print(char * st, int x, int y); #endif //ARDU_UTFT_H \ No newline at end of file