testLCDScrollView=nullptr;
}
}
-
+ uint8_t LCD_TEST_FALG=0;
void colorTimerCallBack(int data)
{
testLCDView* t= testLCDView::GetInstance();
if(t!=NULL)
- t->set_LCD_color();
+ t->set_LCD_color(LCD_TEST_FALG);
+ LCD_TEST_FALG++;
}
- uint8_t LCD_TEST_FALG=0;
- void testLCDView :: set_LCD_color(void)
+
+ void testLCDView :: set_LCD_color(int color)
{
- switch (LCD_TEST_FALG)
+ switch (color)
{
case 0:
testLCDScrollView->SetStyle(STYLE_BACKGROUND_COLOR, Color::Green().full);
case 2:
testLCDScrollView->SetStyle(STYLE_BACKGROUND_COLOR, Color::Yellow().full);
break;
+ case 3:
+ testLCDScrollView->SetStyle(STYLE_BACKGROUND_COLOR, Color::Red().full);
+ break;
+ case 4:
+ testLCDScrollView->SetStyle(STYLE_BACKGROUND_COLOR, Color::White().full);
+ break;
+ case 5:
+ testLCDScrollView->SetStyle(STYLE_BACKGROUND_COLOR, Color::Black().full);
+ break;
default:
break;
}
RootView::GetInstance()->Invalidate();
- LCD_TEST_FALG++;
+ //LCD_TEST_FALG++;
}
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SystemView::draglistener can not be nullptr!");
return false;
}
- testLCDScrollView->SetOnDragListener(draglistener);
+ testLCDScrollView->SetOnDragListener(draglistener);
testLCDScrollView->SetTouchable(true);
testLCDScrollView->SetDraggable(true);
}
return testLCDScrollView;
}
+
+#ifdef __cplusplus
+#if __cplusplus
+extern "C"
+{
+#endif /* __cplusplus */
+#endif /* __cplusplus */
+
+ void ble_factorytest_set_LCD_color(int color)
+ {
+ testLCDView* t= testLCDView::GetInstance();
+
+ if(t!=NULL)
+ t->set_LCD_color(color);
+ }
+
+
+#ifdef __cplusplus
+#if __cplusplus
+}
+#endif /* __cplusplus */
+#endif /* __cplusplus */
}
\ No newline at end of file