Author Topic: My Digital Clock  (Read 7228 times)

0 Members and 1 Guest are viewing this topic.

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
My Digital Clock
« on: March 23, 2012, 10:40:26 am »
This is my digital clock. I made it with basics and finally descided to put it on this site. It refreshes every 1 second so you don't have to do it yourself.
In the program itself is a little menu, help-file included at option 4, help. You also can set you're own time and date.
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: My Digital Clock
« Reply #1 on: March 23, 2012, 02:36:20 pm »
What language is this written in?

ASM, Basic? :D

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: My Digital Clock
« Reply #2 on: March 23, 2012, 02:41:49 pm »
In basic
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
Re: My Digital Clock
« Reply #3 on: March 23, 2012, 02:43:45 pm »
That's impressive that you got it able to update every 1 second, accurately. :D

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: My Digital Clock
« Reply #4 on: March 23, 2012, 04:38:21 pm »
Hm, pretty nice.
Now try creating an analog clock. :D
(I once did so it's possible)
I'm not a nerd but I pretend:

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: My Digital Clock
« Reply #5 on: March 23, 2012, 04:42:00 pm »
Hm, pretty nice.
Now try creating an analog clock. :D
(I once did so it's possible)
same here, but with basic if you store a pic and recall it, text gets erased, but not lines, but re-displaying it every frame looked crappy XD
« Last Edit: March 23, 2012, 04:42:32 pm by parser padwan »

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: My Digital Clock
« Reply #6 on: March 23, 2012, 06:48:24 pm »
Hm, pretty nice.
Now try creating an analog clock. :D
(I once did so it's possible)
same here, but with basic if you store a pic and recall it, text gets erased, but not lines, but re-displaying it every frame looked crappy XD
Not bad if you only erase the lines <_<




Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: My Digital Clock
« Reply #7 on: March 23, 2012, 08:52:42 pm »
Hm, pretty nice.
Now try creating an analog clock. :D
(I once did so it's possible)
same here, but with basic if you store a pic and recall it, text gets erased, but not lines, but re-displaying it every frame looked crappy XD
Not bad if you only erase the lines <_<
O.O O.O
why did I not think of that? grr....
* parser padwan goes off to code

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: My Digital Clock
« Reply #8 on: March 23, 2012, 09:12:25 pm »
I tried doing a clock before in 2001 but I never got able to make it even close to accurate enough. It seemed like adding one single increment loop to a for loop made it too fast instead of too slow.

EDIT: Fixed horrible typo on clock.
« Last Edit: March 23, 2012, 09:14:36 pm by DJ_O »

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: My Digital Clock
« Reply #9 on: March 23, 2012, 09:53:11 pm »
I made my own clock before, and it was like <200 bytes. :D (I think)
Sig wipe!

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: My Digital Clock
« Reply #10 on: March 25, 2012, 10:40:42 am »
That's impressive that you got it able to update every 1 second, accurately. :D
thanks, and the analog clock: I made one allready, by copying the source from another, but I'm not good with those sin( things and all :P

So I made an digital cause it's easyer to read
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: My Digital Clock
« Reply #11 on: March 25, 2012, 12:23:20 pm »
By the way one issue I had in BASIC is that when holding down or pressing some keys, the program slows down slightly (by about 0.1%, but just enough for any clock to get out of sync)

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: My Digital Clock
« Reply #12 on: April 28, 2012, 11:03:08 pm »
By the way one issue I had in BASIC is that when holding down or pressing some keys, the program slows down slightly (by about 0.1%, but just enough for any clock to get out of sync)

DJ_O, to be fair, the 84+ has a command called startTmr which returns the current date in seconds after midnight, January 1st, 1997. This command relies on the internal crystal timers so it runs at the same speed regardless of what you are doing.

While your program required very careful calibration and command timing, this one can be done with:

startTmr
While 1
Disp startTmr-Ans
End
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline stevon8ter

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 663
  • Rating: +10/-0
    • View Profile
Re: My Digital Clock
« Reply #13 on: May 18, 2012, 04:50:57 pm »
First and for all, sorry for being way to long ofline :(

And second: i don't really get what penguin means
My prog always get the system time after each second so it's being re-calinrated each second, always runs with the time of ur ti84
None of my posts are meant offending... I you feel hurt by one of my posts, tell me ... So i can appoligise me and/or explain why i posted it


Hi there, I'm the allmighty (read as: stupid, weak...) STEVON8TER

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: My Digital Clock
« Reply #14 on: May 19, 2012, 09:42:43 am »
Well, what I was trying to do was to explain to DJ_O some of the new features of the 84+. DJ_O didn't know about the clock features of the 84+. What happens is that the 84+ has a quartz crystal timer inside of it that allows for very accurate measurement of time. This crystal runs independently of the calculator and it is what makes the system clock work.

DJ_O was rather amazed that you pulled this program off because back in the day, he couldn't use these internal clocks. The 83+ lacked this crystal timer, which meant DJ_O couldn't use any of these routines:
  • checkTmr(
  • ClockOn
  • ClockOff
  • dayOfWk(
  • getDate
  • getDtFmt
  • getDtStr(
  • getTime
  • GetTmFmt
  • getTmStr(
  • isClockOn
  • setDate(
  • setDtFmt(
  • setTime(
  • setTmFmt(
  • startTmr
  • Time
  • timeCnv(


(there were a lot more than I expected)

But, as you can see, without any of those routines, writing a clock would be uber hard. I was just trying to show DJ_O that now an easier method exists.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112