This function creates a custom buzz!
Go update your Arduino Library now!
NEW functions available!
If you want these new functions GO UPDATE!
WHAT IS NEW?
Now there's a new buzzer function that allows you to change the amplitude and the duration of the buzz! It can be seen in our buzzer documentation here on the forums and on our Github. The function is also otherwise shared below too!
buzz.custom_buzz(uint8_t amplitude, uint32_t milliseconds);
Amplitude is a measure of how strong the motor vibrates.
Amplitude can be from 0 (no buzz) to 127 (max buzz).
Jewelbots typically buzz right in the middle at an amplitude of 63
Milliseconds is how long the motor will vibrate.
Millisecond is measured in, you guessed it, milliseconds.
40 ms is the minimum allowed and 2 s (2000 ms) is the max for longevity.
Many of you want to be able to control the amount of time the Jewelbot can buzz for. However, not only can you control how long the Jewelbot can buzz for, but also how strong its buzz is!! Hope this new function makes its way into your creative code! Definitely post your program if you use it!
HOW TO UPDATE?
Updating your Arduino Library again after the first time is slightly different from the original steps you followed from the first time. Look how to do it here.
- From the Tools menu, scroll over "Board:" and then select "Boards Manager".
- Type in "j" in the "Filter your search" box to quickly find the Jewelbots Boards.
- Click anywhere in the box for "Jewelbots Arduino Library" to display the "Update" button.
- Click the "Update" button to update the board to the most recent version.
You will have to do this every time you want to update your Arduino Library again. It is super important to update your Arduino Library! It makes sure you have the most recent features available!