Getting Started

Follow these steps to set up the UNI library and start programming your robot.

Installation

Method 1: Arduino Library Manager (Recommended)

  1. Open the Arduino IDE.
  2. Go to Sketch > Include Library > Manage Libraries...
  3. Search for UNI / UniBase.
  4. Click Install on the latest version.

Method 2: Manual Installation

  1. Download the latest release zip from the GitHub repository.
  2. In Arduino IDE, go to Sketch > Include Library > Add .ZIP Library...
  3. Select the downloaded zip file.

Hello Robot

Here is a minimal example to verify that your environment is set up correctly. This sketch initializes the robot and prints "Hello Robot!" to the OLED display.

#include <UNI.h>

// Create the robot instance
UniBase robot;

void setup() {
  // Initialize the robot
  robot.begin();
  
  // Display a greeting
  robot.displayPrint("Hello Robot!");
  
  // Blink the LED to show activity
  robot.blinkLED(500);
}

void loop() {
  // Your main logic here
  delay(100);
}

Uploading to ESP32

Make sure you have the ESP32 Board Package installed in your Arduino IDE.

  1. Select your board: Tools > Board > ESP32 Dev Module.
  2. Select the correct Port.
  3. Click Upload.