InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.68k stars 916 forks source link

MotorController: Vibration pattern support #1588

Closed Riksu9000 closed 8 months ago

Riksu9000 commented 1 year ago

This needs some more testing.

On the PineTime, running the motor too long will cause the battery voltage to drop, which runs the motor slower. This is something that can be heard and should be avoided if possible. The pattern should also be strong, so that it will be most noticable. This is a difficult balancing act. The duration of the vibration and the pause both matter. The current pattern is about as strong as the vibration can be without the speed dropping.

Currently InfiniSim doesn't simulate this correctly. Fix: https://github.com/InfiniTimeOrg/InfiniSim/pull/85

Timer now plays a vibration pattern.

github-actions[bot] commented 1 year ago
Build size and comparison to develop: Section Size Difference
text 415092B 208B
data 940B 0B
bss 53584B 16B