Here’s the demo videoWhat an unfortunate shot! :O
Here’s the demo videoWhat an unfortunate shot! :O
Hi Guys,
This came in handy for me today, so I just wanted to share the tip.
If you are reading UTC time from GPS, and want to display your local time,
there’s no other way but having a complete calendar to know what the date is going to be
if your adjustment of the hours made a day change over.
If you read 22:00 UTC time from the GPS, and in my location, have to add the offset +10,
you would have the time 32:00, and would have watched for 24 hour overflow in an hours buffer,
so the time would be displayed correctly as 08:00. The day could have been incremented on the
overflow of the hours buffer as well, but it could have also been the last day of the month or year,
and you need to know how many days are in the particular month for the current year.
This all didn’t really occur to me until I next read the time from a GPS module,
but the limitation has hit me before.
Cheers, Art.
Last edited by Art; - 8th May 2015 at 11:56.
Hi Guys
This might be of use to someone familiar with PBP, but looking at Arduino or something like that.
The exact same code ported to C, and demonstrated with a graphic GUI.
Although the graphic GUI is freshly done in C, it’s using the same “setcal" subroutine above,
as a C function, which at least demonstrates how to use lookup tables, arrays, loops, and some arithmetic.
Very nice!
And very quick LCD update! Like!
Ioannis
Thanks Ioannis
The graphics stuff is all new C started in 2016, but I think that part would be better in PBP or asm,
just that it wouldn’t run on dspic, and it appears the dspic asm isn’t the familiar 8 bit RISC asm.
Maybe if/when the PBP24 or PBP32 will be available, we will see dreams coming true!
Until then, keep up the good work and let us see your achievements.
Ioannis
Bookmarks