bufDrawString(buf, 50, 0, "Nspire clock - By Loic Pujet", 0);
uint32_t time = *(volatile uint32_t*) 0x90090000;
sprintf(clock, "%lu : %lu : %lu", (time%86400)/3600, (time%3600)/60, time%60);
bufDrawString(buf, 115, 150, clock, 0);
I figured out how it works by now, but I have a problem with my program doing nothing for some seconds. I think this is caused by the ndless function wait_no_key_pressed(). Should this function work normally if I change the timer divider and some other things with the timer? Or does it also use the timers and my changes make it work strange?wait_no_key_pressed() does use the timer because it calls the idle() function to save power. The equivalent without power saving is while(any_key_pressed());