I can understand maybe you want something fancy when driving an iPhone style haptic vibrator that's more like a voice coil than a motor, but when driving a motor, I think you can do whatever you want to do just by pulsing the GPIO pin in the right way, which can be done in software like above?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
There's a library at https://github.com/espruino/BangleApps/blob/master/modules/buzz.js (and associated menu item at https://github.com/espruino/BangleApps/blob/master/modules/buzz_menu.js) which allows you to choose from a set of different buzz patterns.
I can understand maybe you want something fancy when driving an iPhone style haptic vibrator that's more like a voice coil than a motor, but when driving a motor, I think you can do whatever you want to do just by pulsing the GPIO pin in the right way, which can be done in software like above?