UNI.h Reference

Every function of the library on one page. Click a function to open its description with parameters and an example.

The library is included with one line and provides two classes: UniBase drives the platform itself, UniDev the ports P1–P8 and the modules on them.

#include <UNI.h>

UniBase robot;   // the platform: motors, movement, odometry, screen
UniDev module;   // ports P1–P8: sensors, servos, light ring, traffic light

UniBase

The platform: motors, movement, odometry, screen. In the examples the object is called robot. Constants are on the UniBase class page.

UniDev

Ports P1–P8 and the modules on them: sensors, buttons, servos, the light ring, the traffic light. In the examples the object is called module. Port names are on the UniDev class page.