Omnimaga

Calculator Community => TI Calculators => Calculator C => Topic started by: Streetwalrus on July 05, 2014, 05:37:20 am

Title: [Solved][Ndless] Hardware timers on the CX
Post by: Streetwalrus on July 05, 2014, 05:37:20 am
Hmmm. I've been struggling with these all day long yesterday. I got them to work eventually but now I'm facing a problem now. Thing is, it seems to be zero and non zero at the same time. O.O

Code : https://github.com/Streetwalrus/tetris
n2DLib required to compile : https://github.com/n2DLib/n2DLib

I looked at the sleep() code and I'm doing exactly the same thing (that's what I did by reading only the datasheet too :/).
So if you guys have an idea I'd be grateful.
Title: Re: [Ndless] Hardware timers on the CX
Post by: aeTIos on July 05, 2014, 05:46:09 am
Quote
Thing is, it seems to be zero and non zero at the same time.
The Nspire uses qubits? O.O
background: http://en.wikipedia.org/wiki/Qubit
Title: Re: [Ndless] Hardware timers on the CX
Post by: Streetwalrus on July 05, 2014, 05:48:34 am
Lol no. I tried to set the timer to zero. The test would be true whether I did *timer_value == 0 or !=.
Title: Re: [Ndless] Hardware timers on the CX
Post by: aeTIos on July 05, 2014, 05:51:09 am
That's really weird. O.o
Title: Re: [Ndless] Hardware timers on the CX
Post by: Streetwalrus on July 05, 2014, 07:26:42 am
Holy cow it works now. O.O Apparently it was an n2DLib bug. Problem solved.