I really need to make a good shape clock , But I couldn`t format numbers in this style 04:09!
How do I make this guys?
Does mikroBasic have ByteToStrWithZeros ?
- janko.kaljevic
- Posts: 3565
- Joined: 16 Jun 2011 13:48
Re: Does mikroBasic have ByteToStrWithZeros ?
Hello,
At the moment we do not have function that will do this thing, but you can make very easily.
For example:
This will display hours and minutes in desired format.
Best regards.
At the moment we do not have function that will do this thing, but you can make very easily.
For example:
Code: Select all
Lcd_Chr(2, 6, (hours div 10) + 48)
Lcd_Chr(2, 7, (hours mod 10) + 48)
Lcd_Chr(2, 8, ":")
Lcd_Chr(2, 9, (minutes div 10) + 48)
Lcd_Chr(2,10, (minutes mod 10) + 48)
Best regards.
Re: Does mikroBasic have ByteToStrWithZeros ?
Thank you , it works now .
Why this forum does not have a thank buttom!
Why this forum does not have a thank buttom!
- janko.kaljevic
- Posts: 3565
- Joined: 16 Jun 2011 13:48
Re: Does mikroBasic have ByteToStrWithZeros ?
Hello,
I am very glad that you have solved this.
Thanks for suggesting. We will consider it.
Best regards.
I am very glad that you have solved this.
Thanks for suggesting. We will consider it.
Best regards.
Re: Does mikroBasic have ByteToStrWithZeros ?
And also a resolved tag or flag on subjects or search engine might be helpfull for us and you.
Beast regard
Beast regard
Re: Does mikroBasic have ByteToStrWithZeros ?
arvinfx wrote:And also a resolved tag or flag on subjects or search engine might be helpfull for us and you.
Beast regard
Hi Guys,
I second that request. It would help users find solutions a lot faster.
Mhz.
HW: easyPIC5|PICFlash2|easyBT|smartGSM|easyGSM|PICPLC16|mmWorkStation|FT800 Eve|PIC Clicker/2|
MMBs:PIC18F,PIC33EP,PIC32|CLICKs:DAC,ADC,GPS L10,Thermo,8x8B LED,Stepper,W/B OLED,9DOF,GPS3,tRF,Hall I|
SW: mP for PIC|mB for PIC-dsPIC-PIC32|Visual-TFT|
MMBs:PIC18F,PIC33EP,PIC32|CLICKs:DAC,ADC,GPS L10,Thermo,8x8B LED,Stepper,W/B OLED,9DOF,GPS3,tRF,Hall I|
SW: mP for PIC|mB for PIC-dsPIC-PIC32|Visual-TFT|
Re: Does mikroBasic have ByteToStrWithZeros ?
We hesitate to install third party "Mods" for phpBB, because updating the forum then is a nightmare, that's talking from experience.
In order to make Google index it the way you wish, just put "[Solved]" in the topic title and you will get the same effect.
In order to make Google index it the way you wish, just put "[Solved]" in the topic title and you will get the same effect.