[Example] Progress bar with auto increment/decrement
Posted: 22 Sep 2022 09:16
Hello,
here is a small example of using the progress bar to display a value, set by two buttons to increase and decrease the value.
A short press will increase/decrease the value by 5%-points. Holding the button ( keep pressing ) will automatically
increase or decrease the value, until the button is released, the minimum or the maximum value is reached.
Demonstrates the use of events like OnDown, OnUp, and OnPress. Additionally a correctly working implementation of
millis() using timer interrupts is shown. Tested on mikromedia 3 for PIC32 and Fusion for STM32 v8.
Please use it freely for your projects
here is a small example of using the progress bar to display a value, set by two buttons to increase and decrease the value.
A short press will increase/decrease the value by 5%-points. Holding the button ( keep pressing ) will automatically
increase or decrease the value, until the button is released, the minimum or the maximum value is reached.
Demonstrates the use of events like OnDown, OnUp, and OnPress. Additionally a correctly working implementation of
millis() using timer interrupts is shown. Tested on mikromedia 3 for PIC32 and Fusion for STM32 v8.
Please use it freely for your projects