Modification into 17th July New display demo code

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of Ext_Demo_17July2017_newdis by SenseSemi

Files at this revision

API Documentation at this revision

Comitter:
nikitateggi
Date:
Tue Jul 18 04:15:30 2017 +0000
Parent:
32:76892fdf5e4c
Child:
34:8f6b0dc124e8
Commit message:
New display 18/7/17; ; ; ;

Changed in this revision

bt.cpp Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
touch_modules.h Show annotated file Show diff for this revision Revisions of this file
--- a/bt.cpp	Sat Jul 15 10:30:46 2017 +0000
+++ b/bt.cpp	Tue Jul 18 04:15:30 2017 +0000
@@ -294,11 +294,13 @@
                    if (ack_rx==myBleMsg->proto)
                       {*/
                       if (bt_file_tosend<=current_file)     
-                            {      sd_close();
-                                // bt_file_tosend=bt_file_tosend+1;
-                                 // eprom_write(6,bt_file_tosend);
-                                 // sd_open_read(bt_file_tosend);
-                                 // total_file_size=file_size() ;  
+                            {   
+                                if (file==1)
+                                   {
+                                         sd_close();
+                                      }  
+              
+                                      
                                   state_tx=1;
                                   
                                   mc.printf("next file");
--- a/main.cpp	Sat Jul 15 10:30:46 2017 +0000
+++ b/main.cpp	Tue Jul 18 04:15:30 2017 +0000
@@ -114,6 +114,7 @@
                  if(state_t ==0)
                  {
                     BT_finished();
+                    wait(1);
                     screen_BT_return();  
                     EnableTouch();
                     main_state=1;
--- a/touch_modules.h	Sat Jul 15 10:30:46 2017 +0000
+++ b/touch_modules.h	Tue Jul 18 04:15:30 2017 +0000
@@ -1,3 +1,4 @@
+
 #ifndef TOUCH_MODULES_H_
 #define TOUCH_MODULES_H_
 
@@ -6,9 +7,9 @@
 #define Y_MAX 320
 // touch co-ordinates//
 #define SYSCFG_MAIN_X_MIN 110
-#define SYSCFG_MAIN_X_MAX 150
-#define SYSCFG_MAIN_Y_MIN 100
-#define SYSCFG_MAIN_Y_MAX 220
+#define SYSCFG_MAIN_X_MAX 170
+#define SYSCFG_MAIN_Y_MIN 80
+#define SYSCFG_MAIN_Y_MAX 240
 
 #define TEST_MAIN_X_MIN 40
 #define TEST_MAIN_X_MAX 90