Page 1 of 1

[Example] Progress bar with auto increment/decrement

Posted: 22 Sep 2022 09:16
by frank.malik
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.

NECTO Studio v2.1.0-ProgressBar_AutoIncrDecr.png
NECTO Studio v2.1.0-ProgressBar_AutoIncrDecr.png (13.11 KiB) Viewed 1425 times

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

Re: [Example] Progress bar with auto increment/decrement

Posted: 22 Sep 2022 13:40
by Toley
Very good example, really instructive.
I suggest you to post it on Libstock https://libstock.mikroe.com/ will be easier to find there.

Re: [Example] Progress bar with auto increment/decrement

Posted: 23 Sep 2022 08:12
by frank.malik
Hello Toley,

I wasn't aware about this possibility. Thank you very much for your suggestion.

Re: [Example] Progress bar with auto increment/decrement

Posted: 26 Sep 2022 08:14
by filip
Hi,

Thanks again for your valuable project! :)

Regards,
Filip.

Re: [Example] Progress bar with auto increment/decrement

Posted: 30 Jul 2023 19:42
by Piotr.Owca
Hello.

I'm just getting started with Necto Studio and I'll frankly admit I'm stuck on handling the display.
Your example brightened a few things for me and allowed me to move forward.
Many thanks

Regards
Peter

Re: [Example] Progress bar with auto increment/decrement

Posted: 29 Jan 2024 03:40
by victoriaemmy68
Coding example for the question How to create clickable progress bar increment and decrement value of progress bar with 20%-Reactjs.Slope Game