1 / 9

LEGO NXT Roboter in Java programmieren

LEGO NXT Roboter in Java programmieren. Programmgerüst. public class NxtDemo { public static void main (String[] args ) { // hier steht das eigentliche Programm } }. Die wichtigsten Klassen- bibliotheken. import lejos.nxt .*; import lejos.util .*;.

macha
Download Presentation

LEGO NXT Roboter in Java programmieren

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. LEGO NXT Roboter in Java programmieren

  2. Programmgerüst publicclassNxtDemo { publicstaticvoidmain(String[] args) { // hier steht das eigentliche Programm } }

  3. Die wichtigsten Klassen-bibliotheken importlejos.nxt.*;importlejos.util.*;

  4. Programmgerüst mit Motoren und Sensoren importlejos.nxt.*; importlejos.util.*; publicclassNxtDemo { static Motor motorAnew Motor(MotorPort.A); // weitere Motoren… staticTouchSensortsnewTouchSensor(SensorPort.S1); // weitere Sensoren… publicstaticvoidmain(String[] args) { // hier steht das eigentliche Programm } }

  5. Verwendung von Motoren

  6. Verwendung von Sensoren

  7. LCD-Display und Buttons

  8. Weitere nützliche Klassen Alle Methoden dieser Klassen sind statisch!

  9. NXT Notabschaltung gleichzeitig drücken

More Related