To program the VEX IQ controller:
- Configure the peripherals connected to the controller in the "config" region. Create device objects in the vexiq module, passing the port number if necessary.
- Write Python code invoking methods on peripheral objects or the main module.
led.on()
if bumper.is_pressed():
print "Switch is on!"
motor.run(50)
- For details, see the full docs for the vexiq module
This API is built on top of PyMite Python interpreter, providing some (but not all) of the built-in Python functions. For full list of supported functions see the namespaces page