FluxGarage / RoboEyes

The FluxGarage RoboEyes library draws smoothly animated robot eyes on OLED displays, using the Adafruit GFX library.
https://www.fluxgarage.com
GNU General Public License v3.0
51 stars 11 forks source link
arduino-library arduino-nano arduino-uno oled oled-display oled-display-ssd1306 robot robots

FluxGarage RoboEyes Library

Draws smoothly animated robot eyes on OLED displays, using the Adafruit GFX library. Robot eye shapes are configurable in terms of width, height, border radius and space between. Several different mood expressions (happy, tired, angry, default) and animations (autoblinker, idle, laughing, confused) are available. All state changes have smooth transitions and thus, complex animation sequences are easily feasible.

Developing this library was the first step of a larger project: the creation of my own DIY robot from the design perspective. Check out the FluxGarage Youtube Channel.

Watch the Demo and Getting Started Videos on Youtube

#1 - Smoothly Animated Robot Eyes on OLED Displays with the Robo Eyes Library #2 - Getting Started With the Free Robo Eyes Arduino Library

Installation

  1. Navigate to github.com/FluxGarage/RoboEyes.
  2. Choose "Code > Download Zip"
  3. In the Arduino IDE, navigate to "Sketch > Include Library > Add .ZIP Library" and select the downloaded file

Functions

General

Define Eye Shapes, all values in pixels

Define Face Expressions (Mood, Curiosity, Eye-Position, Open/Close)

Set Horizontal and/or Vertical Flicker

Alternately displaces the eyes in the defined amplitude in pixels:

Play Prebuilt Oneshot Animations

Macro Animators

Blinks both eyes randomly:

Repositions both eyes randomly: