Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: FT_Hal_Utils.cpp
- Revision:
- 6:16e22c789f7d
- Parent:
- 5:c0ffdb08b8a5
diff -r c0ffdb08b8a5 -r 16e22c789f7d FT_Hal_Utils.cpp
--- a/FT_Hal_Utils.cpp Thu Sep 25 20:32:21 2014 +0000
+++ b/FT_Hal_Utils.cpp Tue Feb 10 23:32:22 2015 +0000
@@ -108,3 +108,25 @@
Wr8(REG_PWM_DUTY,i);
}
+ft_void_t FT800::read_calibrate(ft_uint8_t data[24]){
+ unsigned int i;
+ for(i=0;i<24;i++){
+ data[i] = Rd8(REG_TOUCH_TRANSFORM_A + i);
+ }
+}
+
+ft_void_t FT800::write_calibrate(ft_uint8_t data[24]){
+ unsigned int i;
+ for(i=0;i<24;i++) {
+ Wr8(REG_TOUCH_TRANSFORM_A + i,data[i]);
+ }
+}
+
+ft_uint32_t FT800::color_rgb(ft_uint8_t red,ft_uint8_t green, ft_uint8_t blue){
+ return ((4UL<<24)|(((red)&255UL)<<16)|(((green)&255UL)<<8)|(((blue)&255UL)<<0));
+ }
+
+ft_uint32_t FT800::clear_color_rgb(ft_uint8_t red,ft_uint8_t green, ft_uint8_t blue){
+ return ((2UL<<24)|(((red)&255UL)<<16)|(((green)&255UL)<<8)|(((blue)&255UL)<<0));
+ }
+
\ No newline at end of file