Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
isochronic Guru Joined: 21/01/2012 Location: AustraliaPosts: 689
Posted: 11:46pm 31 Jul 2016
Copy link to clipboard
Print this post
Impressive lcd work Just wondering, what compiler version do you recommend for the pic32mx470s ?
I see the latest supports position independent code, but I don't know if it is ok
for the '470 yet
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702
Posted: 09:37am 11 Aug 2016
Copy link to clipboard
Print this post
Peter
This works beautifully and I've managed to get the position and size of the hands exactly how I want them
I do have one question
Is it possible to make the smaller bottom half of the second hand any smaller than it is?
I've tried but all I succeed in doing is making the top thinner
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702
Should secs be secs=Val(Right$(Time$,2)
or shouldn't it be secs=Val(Right$(Time$,7,2) ?
MicroBlocks Guru Joined: 12/05/2012 Location: ThailandPosts: 2209
Posted: 09:03pm 11 Aug 2016
Copy link to clipboard
Print this post
With RIGHT$ you count the number of digits you want from the right.
LEFT$ obviously from the left.
MID$ takes a string anywhere out of the string so you need two numbers. The start and how many characters you want.
MID$(Time$,7,2) will give the same result as RIGHT$(Time$,2).
You just choose the one that is easiest to understand. Which in this case is the RIGHT$ as there is no guessing or counting needed to know which characters you want.
Microblocks. Build with logic.
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702
Posted: 09:25pm 11 Aug 2016
Copy link to clipboard
Print this post
ah that makes sense Jean, thank you so much
I hadn't actually noticed it said "Right$"