NQC
API Overview
Contents | Main Index
 CyberMaster   RCX   RCX2   Scout 
The NQC API defines a set of functions, values, constants, and macros that provide access to various capabilities of the target such as sensors, outputs, sound, timers, and communication.
  • A function is something that can be called as a statement. Typically is takes some action or configures some parameter.
  • Values represent some parameter or quantity and can be used in expressions.
  • Constants are symbolic names for values that have special meanings for the target. Often, a set of constants will be used in conjunction with a function. For example, the PlaySound() function takes a single argument which determines which sound is to be played. Constants, such as SOUND_UP, are defined for each sound.
  • Some features are only available on certain targets. This document uses target color bars to distinguish the targets where appropriate. A color-key is shown at the top of every page. Here is an example of something pertaining to the RCX2 and both the RCX and RCX2:
     
        Since the RCX2 is a superset of RCX features, all RCX features work with both the original firmware and the 2.0 firmware (RXC2).
        You can upgrade your RCX's firmware to 2.0 by downloading the 2.0 firmware from Lego's website. (Note that the last time I tried it, I needed to use Internet Explorer and not Netscape Navigator.)

    Comments