how to draw on the lcd screen for a certain number of second

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

how to draw on the lcd screen for a certain number of second

Postby treeface99 » Wed Jan 11, 2012 9:41 pm

hi

I am writing a blackjack program and right at the end of my program, I want to display a string on the screen for a number of seconds before the program ends.

I can do it using a while loop and the 'enter' button but would like it to do it automatically. Does it involve a wait() function?

Many Thanks
treeface99
Novice
 
Posts: 30
Joined: Thu Nov 24, 2011 10:07 am

Re: how to draw on the lcd screen for a certain number of se

Postby skoehler » Wed Jan 11, 2012 11:24 pm

skoehler
leJOS Team Member
 
Posts: 1387
Joined: Thu Oct 30, 2008 4:54 pm

Re: how to draw on the lcd screen for a certain number of se

Postby roger » Fri Jan 13, 2012 7:16 am

I prefer
Code: Select all
Delay.msDelay(1000)
to pause the code for 1 second; it does does not need a try.. catch block.
roger
Moderator
 
Posts: 357
Joined: Fri Jun 01, 2007 4:31 am
Location: Berkeley, CA


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 2 guests

more stuff