[Example] Progress bar with auto increment/decrement

Discussion on projects that are created by users and posted on mikroElektronika website.
Post Reply
Author
Message
frank.malik
Posts: 96
Joined: 09 Apr 2021 20:37

[Example] Progress bar with auto increment/decrement

#1 Post by frank.malik » 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.

NECTO Studio v2.1.0-ProgressBar_AutoIncrDecr.png
NECTO Studio v2.1.0-ProgressBar_AutoIncrDecr.png (13.11 KiB) Viewed 1325 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
Attachments
ProgressBar_with_auto_incr_decr.zip
(15.44 KiB) Downloaded 66 times
Last edited by frank.malik on 03 Oct 2022 18:52, edited 1 time in total.
Kind regards
Frank

Fusion for STM32 v8, STM32F407ZG@168MHz, 4" TFT capacitive
mikromedia 3, PIC32MZ2048EFH100@200MHz, 3" TFT capacitive
NECTO Studio 3.0.0, mikroC AI for ARM/PIC32, mikroSDK v.2.7.2

Toley
Posts: 922
Joined: 03 Sep 2008 16:17

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

#2 Post by Toley » 22 Sep 2022 13:40

Very good example, really instructive.
I suggest you to post it on Libstock https://libstock.mikroe.com/ will be easier to find there.
Serge T.
Learning is an endeless process but it must start somewhere!

frank.malik
Posts: 96
Joined: 09 Apr 2021 20:37

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

#3 Post by frank.malik » 23 Sep 2022 08:12

Hello Toley,

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

Fusion for STM32 v8, STM32F407ZG@168MHz, 4" TFT capacitive
mikromedia 3, PIC32MZ2048EFH100@200MHz, 3" TFT capacitive
NECTO Studio 3.0.0, mikroC AI for ARM/PIC32, mikroSDK v.2.7.2

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

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

#4 Post by filip » 26 Sep 2022 08:14

Hi,

Thanks again for your valuable project! :)

Regards,
Filip.

Piotr.Owca
Posts: 1
Joined: 27 May 2023 17:18

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

#5 Post by Piotr.Owca » 30 Jul 2023 19:42

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

victoriaemmy68
Posts: 1
Joined: 29 Jan 2024 03:40

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

#6 Post by victoriaemmy68 » 29 Jan 2024 03:40

Coding example for the question How to create clickable progress bar increment and decrement value of progress bar with 20%-Reactjs.Slope Game

Post Reply

Return to “User Projects”