How do I override the dimming of the iphone screen?

I have a tiny game with levels where the player tile is controlled by the accelerometer, the player himself never touches the screen on those levels. What code do I use to override the dimming of the screen light on the iPod/iPhone/iPad for those levels? As of now, it kicks on after 30 seconds or so if I don´t tap the screen, would like the screen to stay the same throughout the levels without needing to tap it.

[import]uid: 44742 topic_id: 9022 reply_id: 309022[/import]

Put the following whenever you want to disable device sleeping/dimming:

[blockcode]
system.setIdleTimer( false )
[/blockcode]

Set it to true whenever you want to re-enable it. [import]uid: 52430 topic_id: 9022 reply_id: 32900[/import]

Thanks! [import]uid: 44742 topic_id: 9022 reply_id: 32918[/import]