change motor patern on half hour

This commit is contained in:
tofasthacker 2023-10-14 22:50:41 -04:00
parent ecbcce41d7
commit bf8c4dfef8
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ namespace {
* The pattern must end with a duration of vibration and a terminator.
*/
static constexpr uint8_t vibrationPattern[] = {30, 150, 30, 150, 30, 0};
static constexpr uint8_t vibrationPattern[] = {10, 100, 50, 200, 10, 0};
static size_t patternPosition = 0;
if (vibrationPattern[patternPosition] != 0 && xTimerChangePeriod(vibTimer, vibrationPattern[patternPosition] << 1, 0) == pdPASS &&

View File

@ -392,7 +392,7 @@ void DisplayApp::Refresh() {
time_var = dateTimeController.Minutes();
if (time_var == 30){
NRF_LOG_INFO("Short: %d", time_var);
motorController.RunForDuration(25);
motorController.StartPattern();
}
else
{