JohnySeven / TWatchSK

TTGO T-Watch 2020 v1 supporting Signal K features for displaying boat data and controlling devices on board.
MIT License
9 stars 1 forks source link

Hardware has new methods for simple or pattern based vibrations #69

Closed JohnySeven closed 3 years ago

JohnySeven commented 3 years ago

I've added new methods into Hardware class: void Hardware::vibrate(int duration) - to vibrate for specified duration using pattern 100 ms on/100 ms off void Hardware::vibrate(int pattern[], int repeat) - to vibrate using pattern defined in pattern and number of repeats.

Pattern is int array and contains sequence of vibration on and off intervals, the last interval must be 0 to correctly detect end of pattern. For example:

int emergency_pattern[] = { 750, 250, 250, 250, 0}

JohnySeven commented 3 years ago

@ba58smith I've resolved all conflicts after merging sound_player branch. It's ready to be merged.

ba58smith commented 3 years ago

@JohnySeven , resolve my question above, and change the Version number to 0.0.3 (in localizationl.h), then you can merge it.

JohnySeven commented 3 years ago

Version updated and I've responded to your comment. Merging!