change motor patern on half hour
This commit is contained in:
parent
ecbcce41d7
commit
bf8c4dfef8
@ -24,7 +24,7 @@ namespace {
|
|||||||
* The pattern must end with a duration of vibration and a terminator.
|
* 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;
|
static size_t patternPosition = 0;
|
||||||
if (vibrationPattern[patternPosition] != 0 && xTimerChangePeriod(vibTimer, vibrationPattern[patternPosition] << 1, 0) == pdPASS &&
|
if (vibrationPattern[patternPosition] != 0 && xTimerChangePeriod(vibTimer, vibrationPattern[patternPosition] << 1, 0) == pdPASS &&
|
||||||
|
@ -392,7 +392,7 @@ void DisplayApp::Refresh() {
|
|||||||
time_var = dateTimeController.Minutes();
|
time_var = dateTimeController.Minutes();
|
||||||
if (time_var == 30){
|
if (time_var == 30){
|
||||||
NRF_LOG_INFO("Short: %d", time_var);
|
NRF_LOG_INFO("Short: %d", time_var);
|
||||||
motorController.RunForDuration(25);
|
motorController.StartPattern();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user