Help with repetition loop

Discussion on projects that are created by users and posted on mikroElektronika website.
Post Reply
Author
Message
Antonio Sergio Godoy
Posts: 5
Joined: 08 Oct 2016 21:44

Help with repetition loop

#1 Post by Antonio Sergio Godoy » 04 Jul 2019 19:37

Dear Sirs, good afternoon.
Personally I set up a program with underline movement.
Set from right to left. It works normal.
When it returns to the right it stops.
Which command do I have to apply to keep it going!
Thank you very much for this help.
Follows attached.
Attachments
UNDERLINE_1.7z
(560 Bytes) Downloaded 138 times

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Help with repetition loop

#2 Post by stefan.filipovic » 10 Jul 2019 10:51

Hi Antonio,

Unfortunately, I'm not sure if I understand correctly what you intend to do with this code.
Could you please provide us with more details about it?

Are you looking for the command below?

Code: Select all

Lcd_Cmd(_LCD_RETURN_HOME);//Return cursor to home position, returns a shifted display to its original position. Display data RAM is unaffected.
Kind regards,
Stefan Filipović

Antonio Sergio Godoy
Posts: 5
Joined: 08 Oct 2016 21:44

Re: Help with repetition loop

#3 Post by Antonio Sergio Godoy » 17 Aug 2019 13:13

Good Morning.
Thanks for the code suggestion.
Unfortunately it doesn't work.
Following solution.
Attachments
UNDERLINE_C.rar
(384 Bytes) Downloaded 108 times

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Help with repetition loop

#4 Post by stefan.filipovic » 20 Aug 2019 14:46

Hi Antonio,

Could you please provide me with more details about this issue, because I have not managed to reproduce it?

Kind regards,
Stefan Filipović

Antonio Sergio Godoy
Posts: 5
Joined: 08 Oct 2016 21:44

Re: Help with repetition loop

#5 Post by Antonio Sergio Godoy » 13 Mar 2020 13:22

Dear Sir Stefan.filipovic, good morning.
I'm having a lot of difficulties in programming.
I am returning with the same initial situation as this topic.
Related to the "BUTTON_SELECT" and "BUTTON_SET" functions.
I have the files in attachments (MIKROC and PROTEUS).
Example my application:
Button_Select = Digit0; Digit1; Digit2; and Digit3
Button_Set = numbers from 0 to 9.
Summary: Set each digit and add value.
Example 2:
                      BUTTON_SELECT -> UNDERLINE_ON -> DIGIT0 -> BUTTON_SET -> numbers from 0 to 9.
                      BUTTON_SELECT -> UNDERLINE_ON -> DIGIT1 -> BUTTON_SET -> numbers from 0 to 9.
                      BUTTON_SELECT -> UNDERLINE_ON -> DIGIT2 -> BUTTON_SET -> numbers from 0 to 9.
                      BUTTON_SELECT -> UNDERLINE_ON -> DIGIT3 -> BUTTON_SET -> numbers from 0 to 9.
But I can't keep UNDERLINE_ON in position.
Could you check my project !!
I'm a student and I want to learn.
I have the paid version of MIKROC.
Wonderful tool.
I apologize for thinking that I had the solution in the initial topic.
I am using the translator.
It may be that something is wrong.
A hug.
Attachments
CONTADOR VERSÃO FINAL 2.7z
(75.92 KiB) Downloaded 99 times

Post Reply

Return to “User Projects”