My FT800 lib

Dependents:   Radar1

Revision:
1:bd671a31e765
Parent:
0:5e013296b353
Child:
2:ab74a9a05970
--- a/FT_Gpu_Hal.cpp	Fri Jan 03 15:26:10 2014 +0000
+++ b/FT_Gpu_Hal.cpp	Fri Jan 03 23:08:43 2014 +0000
@@ -96,7 +96,7 @@
 	Ft_Gpu_Hal_Wr16(  REG_PWM_DUTY, 100);
 #endif		
 	
-    Ft_Gpu_Hal_Wr8(  REG_GPIO_DIR,0x80);  //| Ft_Gpu_Hal_Rd8( REG_GPIO_DIR));
+    Ft_Gpu_Hal_Wr8(  REG_GPIO_DIR,0x82);  //| Ft_Gpu_Hal_Rd8( REG_GPIO_DIR));
     Ft_Gpu_Hal_Wr8(  REG_GPIO,0x080);     //| Ft_Gpu_Hal_Rd8( REG_GPIO));
 	
 	Ft_Gpu_Hal_Wr32(  RAM_DL, CLEAR(1,1,1));
@@ -532,6 +532,14 @@
 	wait_ms(ms);
 }
 
+ft_void_t FT800::Ft_Sound_ON(){
+	 Ft_Gpu_Hal_Wr8(  REG_GPIO, 0x02 | Ft_Gpu_Hal_Rd8( REG_GPIO));
+}
+
+ft_void_t FT800::Ft_Sound_OFF(){
+	 Ft_Gpu_Hal_Wr8(  REG_GPIO, 0xFD & Ft_Gpu_Hal_Rd8( REG_GPIO));
+}
 
 
 
+