LeJOS is replacement firmware for the Lego Mindstorms RCX and NXT bricks. It’s based on the Java programming language and includes a JVM, or Java Virtual Machine, which allows Lego Mindstorms robots to be programmed in Java. LeJOS is an open source project which means you can participate in its development, or download the source [...]
Java’s SortedSet interface and the classes that implement it (like TreeSet) will store a collection of objects that are sortable. In order to make a class sortable so that we can store it in a sorted collection, we have two choices: the sorted class can implement the Comparable interface we can pass a Comparator to [...]
The Lego MindStorms NXT Brick is controlled by a pair of Atmel microcontrollers: Atmel 32-bit ARM processor, AT91SAM7S256 Atmel 8-bit AVR processor, ATmega48 The AT91SAM7S256 is part of an Atmel series of low pin-count Flash microcontrollers based on the 32-bit ARM7DMI ARM Thumb RISC processor. It features: a maximum clock speed of 55 MHz (48 [...]
Description A simple command prompt calculator that uses Reverse Polish Notation. In Reverse Polish Notation the operators follow their operands; for instance, to add three and four, one would write “3 4 +” rather than “3 + 4″. If there are multiple operations, the operator is given immediately after its second operand; so the expression [...]
Description A program that tells the user if a parity-encoded word is valid or not, and if a Hamming codeword is valid or not. A parity-encoded word is a series of binary digits (zero or one) where the left most digit is either a zero or one depending on the type of parity being used [...]