Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
MECHATRONIC SYSTEMS
TEMPUS IV Project: 158644 -JPCR Development of Regional Interdisciplinary Mechatronic Studies DRIMS
MECHATRONIC SYSTEMS
TEMPUS IV Project: 158644 -JPCR Development of Regional Interdisciplinary Mechatronic Studies DRIMS
MECHATRONIC SYSTEMS
TEMPUS IV Project: 158644 -JPCR Development of Regional Interdisciplinary Mechatronic Studies DRIMS
MECHATRONIC SYSTEMS
first argument, 3, species the line on which to place the words after.
second instruction is a call to the wait1Msec() function. Argument - (1 millisecond = 1/1000th of a second) specied in its argument before proceeding to the next instruction in this case 9,000 milliseconds (or 9 seconds) before proceeding. MECHATRONIC SYSTEMS
TEMPUS IV Project: 158644 -JPCR Development of Regional Interdisciplinary Mechatronic Studies DRIMS
TEMPUS IV Project: 158644 -JPCR Development of Regional Interdisciplinary Mechatronic Studies DRIMS
MECHATRONIC SYSTEMS
Exercice.1. Turn on the NXT brick and connect it to the USB port of the computer.
Under the main menu, choose Robot-> Compile and Download Program.
MECHATRONIC SYSTEMS
Semantic
Erases the complete NXT LCD display, or Clears a single pixel on the NXT LCD screen. Erases a line of text. 'nLineNum' specifies one of the 8 possible text lines Formats a text string and displays it at any (X,Y) coordinate on the LCD display. Drawing uses a large font that is 16-pixels high. 'sFormatString' is the format string to use and 'parm1' and 'parm2' are two optional parameters that can be used within the format string.
Syntax
eraseDisplay(); or nxtClearPixel(xPos, yPos); nxtDisplayClearTextLine(nLineNum);
nxtDrawLine(20, 50, 60, 25); ( Draw line betweeb A(20,50) and B(60,25)
TEMPUS IV Project: 158644 -JPCR Development of Regional Interdisciplinary Mechatronic Studies DRIMS
MECHATRONIC SYSTEMS
Semantic
Draws outline of the rectangle with the specified coordinates. Erase something between gived borders or points. Solid Fill something between gived borders or points Inverts the pixels for the given line
Syntax
nxtDrawRect(10, 50, 60, 25);
Shift the LCD image up one for(i=0; i<1000; ++i) { line. nxtScrollText("Scroll #%d.", i); wait1Msec(250); } Boolean variable that indicates whether the top status line display on the LCD should be present on user-drawn LCD screens. bNxtLCDStatusDisplay = true; (The NXT top status line WILL display on user-drawn LCD screens.)
bNxtLCDStatusDisplay
TEMPUS IV Project: 158644 -JPCR Development of Regional Interdisciplinary Mechatronic Studies DRIMS
MECHATRONIC SYSTEMS
*** More display commands are available in the RobotC On-line Support on the left sidebar under the NXT Functions->Display section.
TEMPUS IV Project: 158644 -JPCR Development of Regional Interdisciplinary Mechatronic Studies DRIMS
MECHATRONIC SYSTEMS
TEMPUS IV Project: 158644 -JPCR Development of Regional Interdisciplinary Mechatronic Studies DRIMS
MECHATRONIC SYSTEMS