Changes done in ECG and BT

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of merged_code2_20sept_2017_4th_oct_2017 by nikita teggi

Revision:
0:c47fb0c1bbf6
Child:
1:8316c23ec6b9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/display_modules.cpp	Tue Dec 27 10:30:48 2016 +0000
@@ -0,0 +1,121 @@
+#include "mbed.h"
+#include "ili9325.h"
+#include "lcd_base.h"
+#include "display_modules.h"
+#include "touch_modules.h"
+
+
+BusOut dataBus( PTC12, PTC13, PTB10, PTC9, PTD4, PTD5, PTD6, PTD7 ); // 16 pins//POC
+ILI9325_LCD lcd( PTC5, PTB9, PTC0, PTB0, &dataBus, NC, PTE31);
+
+
+void init_screen()     // initializing the screen
+{ lcd.Initialize(PORTRAIT);
+}
+
+ void screen_main()//main screen
+ {
+     lcd.SetFont(&TerminusBigFont);
+                lcd.FillRect(5,127,230,320,COLOR_BLACK); 
+                lcd.FillRoundRect(10,130,100,200,COLOR_CYAN);
+                lcd.Print( "BG",40,160,COLOR_BLACK,COLOR_CYAN,0);
+                lcd.FillRoundRect(130,130,220,200,COLOR_YELLOW);
+                lcd.Print( "ECG",160,160,COLOR_BLACK,COLOR_YELLOW,0);
+                lcd.FillRoundRect(10,215,100,285,COLOR_MAGENTA);
+                lcd.Print( "BP",40,245,COLOR_BLACK,COLOR_MAGENTA,0);
+                lcd.FillRoundRect(130,215,220,285,COLOR_GREEN);
+                lcd.Print( "SET",160,245,COLOR_BLACK,COLOR_GREEN,0);
+                }
+                
+       
+                
+void screen_ecg()
+   {
+   DisableTouch();
+               
+                lcd.ClearScreen();
+    //lcd.FillScreen(COLOR_BLACK);
+   
+   
+                lcd.FillRect(5,127,230,320,COLOR_BLACK); 
+                lcd.FillRect(10,30,100,90,COLOR_GREEN);
+                lcd.FillTriangle(10,30,60,10,100,30,COLOR_YELLOW);
+                lcd.DrawRect(20,90,90,40,COLOR_BLACK);
+                 //lcd.Print( "HOME",80,60,COLOR_BLACK,COLOR_GREEN,0);
+                lcd.FillRoundRect(10,130,100,200,COLOR_CYAN);
+                lcd.Print( "SET",30,160,COLOR_BLACK,COLOR_CYAN,0);
+                lcd.FillRoundRect(130,130,220,285,COLOR_YELLOW);
+                lcd.Print( "start",140,200,COLOR_BLACK,COLOR_YELLOW,0);
+                lcd.FillRoundRect(10,215,100,285,COLOR_MAGENTA);
+                lcd.Print( "HIS",40,245,COLOR_BLACK,COLOR_MAGENTA,0);
+              EnableTouch();
+                } 
+                
+                
+ void screen_bp()          // bp main screen
+ {
+                 DisableTouch();
+                 lcd.ClearScreen();
+  //  lcd.FillScreen(COLOR_BLACK);
+                lcd.FillRect(5,127,230,320,COLOR_BLACK); 
+                lcd.FillRoundRect(10,130,100,200,COLOR_CYAN);
+                lcd.Print( "meas",30,160,COLOR_BLACK,COLOR_CYAN,0);
+                lcd.FillRoundRect(130,130,220,200,COLOR_YELLOW);
+                lcd.Print( "start",140,160,COLOR_BLACK,COLOR_YELLOW,0);
+                lcd.FillRoundRect(10,215,100,285,COLOR_MAGENTA);
+                lcd.Print( "his",40,245,COLOR_BLACK,COLOR_MAGENTA,0);
+                lcd.FillRoundRect(130,215,220,285,COLOR_GREEN);
+                lcd.Print( "SET",160,245,COLOR_BLACK,COLOR_GREEN,0);
+     
+            EnableTouch();
+    }               
+                
+  
+   void screen_glc()     // glc main screen
+ {
+                 DisableTouch();
+                 lcd.ClearScreen();
+   // lcd.FillScreen(COLOR_BLACK);
+                lcd.FillRect(5,127,230,320,COLOR_BLACK); 
+                lcd.FillRoundRect(10,130,100,200,COLOR_CYAN);
+                lcd.Print( "meas",30,160,COLOR_BLACK,COLOR_CYAN,0);
+                lcd.FillRoundRect(130,130,220,200,COLOR_YELLOW);
+                lcd.Print( "start",140,160,COLOR_BLACK,COLOR_YELLOW,0);
+                lcd.FillRoundRect(10,215,100,285,COLOR_MAGENTA);
+                lcd.Print( "his",40,245,COLOR_BLACK,COLOR_MAGENTA,0);
+                lcd.FillRoundRect(130,215,220,285,COLOR_GREEN);
+                lcd.Print( "SET",160,245,COLOR_BLACK,COLOR_GREEN,0);
+     
+            EnableTouch();
+    }               
+
+
+void screen_ecg_2()     // ecg second screen 
+{
+      DisableTouch();
+           
+                lcd.ClearScreen();
+   // lcd.FillScreen(COLOR_BLACK);
+   
+                lcd.FillRect(10,30,100,90,COLOR_GREEN);
+                lcd.FillTriangle(10,30,60,10,100,30,COLOR_YELLOW);
+                lcd.DrawRect(20,90,90,40,COLOR_BLACK);
+                //lcd.FillRect(5,127,230,320,COLOR_BLACK); 
+                //lcd.FillRect(60,30,170,90,COLOR_GREEN);
+                //lcd.FillTriangle(60,30,115,10,170,30,COLOR_YELLOW);
+                //lcd.DrawRect(90,90,140,40,COLOR_BLACK);
+                 //lcd.Print( "HOME",80,60,COLOR_BLACK,COLOR_GREEN,0);
+                lcd.FillRoundRect(10,130,100,200,COLOR_CYAN);
+                lcd.Print( "2 s",30,160,COLOR_BLACK,COLOR_CYAN,0);
+                lcd.FillRoundRect(130,130,220,200,COLOR_YELLOW);
+                lcd.Print( "5 s",140,160,COLOR_BLACK,COLOR_YELLOW,0);
+                lcd.FillRoundRect(10,215,100,285,COLOR_MAGENTA);
+                lcd.Print( "10 s",40,245,COLOR_BLACK,COLOR_MAGENTA,0);
+                lcd.FillRoundRect(130,215,220,285,COLOR_GREEN);
+                lcd.Print( "1 m",160,245,COLOR_BLACK,COLOR_GREEN,0);
+     
+            EnableTouch();
+             }
+     
+     
+                    
\ No newline at end of file