Omnimaga

Calculator Community => TI Calculators => Lua => Topic started by: Aequilipse on November 02, 2011, 06:09:12 pm

Title: Time/homescreen on nspire CX
Post by: Aequilipse on November 02, 2011, 06:09:12 pm
Is there a clock or any lua codes to make one? And is there customizable home screens? Thanks!
Title: Re: Time/homescreen on nspire CX
Post by: Adriweb on November 02, 2011, 06:22:45 pm
Not for now since there is no real way without using ndless to access the RTC (clock)...

You can however program a [relative] clock using timer.getMilliSecCounter() (http://wiki.inspired-lua.org/timer.getMilliSecCounter) and asking the user for a starting time...


And no, no customizable homescreen for now (maybe with Ndless3, we'll see..)
Title: Re: Time/homescreen on nspire CX
Post by: Jim Bauwens on November 02, 2011, 06:33:39 pm
timer.getMilliSecCounter() returns the seconds since last boot, so you just need to store the begin time in a var and it will always be correct.
Title: Re: Time/homescreen on nspire CX
Post by: ExtendeD on November 03, 2011, 05:04:37 am
But setting up the clock after each reboot would be a pain for the user.
Title: Re: Time/homescreen on nspire CX
Post by: Jim Bauwens on November 03, 2011, 06:20:50 am
Yeah, thats true.