|
|
@ -282,7 +282,7 @@ void dsp_mgr_change_to_sampling(int progress_s, int heartrate) { // |
|
|
|
sample_page_state_t* sps = &m_sample_page_state; |
|
|
|
|
|
|
|
sps->progress_x = SMAPLE_PAGE_START_X + 10; |
|
|
|
sps->progress_y = SMAPLE_PAGE_START_Y + 2; |
|
|
|
sps->progress_y = SMAPLE_PAGE_START_Y + 3; |
|
|
|
sps->progress_width = 100; |
|
|
|
sps->progress_hight = 8; |
|
|
|
|
|
|
@ -291,7 +291,7 @@ void dsp_mgr_change_to_sampling(int progress_s, int heartrate) { // |
|
|
|
sps->wave_drawser_hight = 45; |
|
|
|
sps->wave_drawser_width = 90; |
|
|
|
|
|
|
|
sps->heartrate_x = sps->wave_drawser_x + sps->wave_drawser_width + 5; |
|
|
|
sps->heartrate_x = sps->wave_drawser_x + sps->wave_drawser_width + 2; |
|
|
|
sps->heartrate_y = sps->wave_drawser_y + 5; |
|
|
|
|
|
|
|
int progress = progress_s / SAMPLE_MIN_TIME_S * 25; |
|
|
@ -360,7 +360,7 @@ void samplePage_schedule() { |
|
|
|
int wave_y = (int)hwss_read_val(); |
|
|
|
int heartrate = (int)hwss_read_heart_rate(); |
|
|
|
// ZLOGI("samplePage_schedule %d %d %d", capturetime, wave_y, heartrate); |
|
|
|
samplePage_update_state(capturetime / 1000, wave_y, hwss_read_heart_rate(), count % 30 == 0, count % 5 == 0); |
|
|
|
samplePage_update_state(capturetime / 1000, wave_y, hwss_read_heart_rate(), count % 30 == 0, count % 10 == 0); |
|
|
|
} |
|
|
|
|
|
|
|
/******************************************************************************* |
|
|
@ -435,7 +435,7 @@ void dsp_mgr_init(void) { |
|
|
|
ZERROR_CHECK(app_timer_create(&m_dsp_mgr_schedule_tmr, APP_TIMER_MODE_REPEATED, dsp_mgr_schedule_tmr_cb)); |
|
|
|
} |
|
|
|
// 此处周期决定采样一个页面显示的宽度 |
|
|
|
ZERROR_CHECK(app_timer_start(m_dsp_mgr_schedule_tmr, APP_TIMER_TICKS(25), NULL)); |
|
|
|
ZERROR_CHECK(app_timer_start(m_dsp_mgr_schedule_tmr, APP_TIMER_TICKS(12), NULL)); |
|
|
|
timer_inited = true; |
|
|
|
} |
|
|
|
void dsp_mgr_uninit(void) { |
|
|
|