加入了max30102模块
This commit is contained in:
+14
-7
@@ -10,6 +10,9 @@
|
||||
#include "touch.h"
|
||||
#include "eeprom.h"
|
||||
|
||||
|
||||
#include "APP_blood.h"
|
||||
|
||||
extern touch_device t0;
|
||||
|
||||
task run_loop;//Ö÷Ñ»·×´Ì¬»ú
|
||||
@@ -25,25 +28,29 @@ void main_app()
|
||||
|
||||
UI *ui=UI_Init(BLACK);
|
||||
|
||||
New_Window(ui,10,10,100,100,WHITE,"WHITE");
|
||||
New_Window(ui,25,30,150,100,GREEN,"GREEN");
|
||||
New_Window(ui,80,80,60,90,YELLOW,"YELLOW");
|
||||
New_Window(ui,120,90,70,60,MAGENTA,"MAGENTA");
|
||||
APP_blood_init(New_Window(ui,10,10,128,128,WHITE,"MAX30102"));
|
||||
|
||||
//New_Window(ui,25,30,150,100,GREEN,"GREEN");
|
||||
//New_Window(ui,80,80,60,90,YELLOW,"YELLOW");
|
||||
//New_Window(ui,120,90,70,60,MAGENTA,"MAGENTA");
|
||||
|
||||
ui->refresh_ui_flag=1;
|
||||
|
||||
while(1)
|
||||
{
|
||||
LCD_set_dot(t0.pix_x, t0.pix_y, RED);
|
||||
sprintf(str,"%04d\n%04d\n%04d",t0.pix_x,t0.pix_y,t0.c);
|
||||
LCD_ShowString(0, 0, &str, 16, RED, BLUE);
|
||||
//LCD_set_dot(t0.pix_x, t0.pix_y, RED);
|
||||
//sprintf(str,"%04d\n%04d\n%04d",t0.pix_x,t0.pix_y,t0.c);
|
||||
//LCD_ShowString(0, 0, &str, 16, RED, BLUE);
|
||||
/*
|
||||
switch(run_loop.sw)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
*/
|
||||
APP_blood_loop();
|
||||
|
||||
UI_Server(ui);
|
||||
TP_Server();
|
||||
EEPROM_SLOWWRITE_SERVER();
|
||||
|
||||
Reference in New Issue
Block a user