Search found 7 matches

by sand7000
Wed Oct 07, 2009 1:29 pm
Forum: DS/DSi Development
Topic: Trouble with timers.h (SOLVED)
Replies: 6
Views: 7994

Re: Trouble with timers.h (SOLVED)

(*slaps forehead) Argh, I hate when I broadcast my own silly math mistakes out to the world. 8) Thanks elhobbs!
by sand7000
Tue Oct 06, 2009 10:20 pm
Forum: DS/DSi Development
Topic: Trouble with timers.h (SOLVED)
Replies: 6
Views: 7994

Re: Trouble with timers.h

Thanks again elhobbs! Adding irqEnable(IRQ_TIMER0); does fix my code.

However, I cannot get the method suggested in the link you provided to work. My attempt is below, and milliseconds doesn't get updated. I tried adding irqSet(IRQ_TIMER0); but it requires that the second argument be a function. If ...
by sand7000
Tue Oct 06, 2009 2:09 am
Forum: DS/DSi Development
Topic: Trouble with timers.h (SOLVED)
Replies: 6
Views: 7994

Re: Trouble with timers.h

I tried removing irqInit(); and it did not change anything. I fell like i need the timerStart() called at some point but I don't understand the docs at http://libnds.devkitpro.org/a00102.html. What I would really like is an example of a millisecond timer if anyone can get one to compile.
by sand7000
Sun Oct 04, 2009 11:07 pm
Forum: DS/DSi Development
Topic: Trouble with timers.h (SOLVED)
Replies: 6
Views: 7994

Trouble with timers.h (SOLVED)

I would like to create a timer that will tell me how many milliseconds have elapsed. This is apparently much more complicated than I expected as CLOCKS_PER_SEC and clock() from time.h do not function properly on my ds. From what I have scraped together in my internet search I wrote the following ...
by sand7000
Sat Oct 03, 2009 2:21 pm
Forum: DS/DSi Development
Topic: Doubling my buffer, quadruples my anguish. (SOLVED)
Replies: 4
Views: 6409

Re: Doubling my buffer, quadruples my anguish. (SOLVED)

Thank you so much elhobbs!! You are right, I should have realized the memory bank was too small to do what i was asking it to do. I had realized that the 3 base offset wasn't enough, but when i swapped in 6 and still got that gray color I knew I was still doing something wrong. 8)
by sand7000
Sat Oct 03, 2009 3:35 am
Forum: DS/DSi Development
Topic: Doubling my buffer, quadruples my anguish. (SOLVED)
Replies: 4
Views: 6409

Re: Doubling my buffer, quadruples my anguish.

Th real problem i am having isn't caused by the px/py mismatch or the edge case problem (these were stupid mistakes on my part due to trying to quickly make a simplest case scenario, and i fixed the mismatch above to no avail). The real problem is my method of double buffering. Please keep giving me ...
by sand7000
Fri Oct 02, 2009 11:00 pm
Forum: DS/DSi Development
Topic: Doubling my buffer, quadruples my anguish. (SOLVED)
Replies: 4
Views: 6409

Doubling my buffer, quadruples my anguish. (SOLVED)

I seem to be unable to successfully create a double buffer. I created the following simple example to show the problem I am having. The idea of this piece of code is to display the touchscreen coordinate on the top screen, and simultaneously draw a square at the point I am touching the bottom screen ...