Skip to content

EspIt/ESP8266-I2C-OLED

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP8266-I2C-OLED

This is a Library for use with the integrated I2C Oled Screen. It is based on hurricaneMitch's fork of costonisp's Webserver with the Screen. Other features are Inspired by Adafruit's SDD1306 Library.

To use it just #include "EspIt_Screen.h" and you are good to go.

Function table

init_Oled(); //Initialized the Oled-Screen
reset_display(); //Performes a full reset of the Screen
displayOff(); //Switches the Display off
displayOn(); //Switches it Back on
clear_display(); //Switches all pixels off
sendCharXY(unsigned char data, int X, int Y); //Draws the Character "data", 8px in width, 8px in height, at position X (0-15) | Y (0-7)
sendStrXY(const char *string, int X, int Y); //Draws the String "string", 8px in width, 8px in height, at position X (0-15) | Y (0-7). automatically creates a newline if needed.
setPixel(int x, int y, bool on); //Switches pixel at pos (X|Y) to either on or off, based on the boolean.
drawLine(int x1, int y1, int x2, int y2, bool on); // Draws a Line from pos (X1|Y1) to (X2|Y2), either on or off, based on the boolean.
drawCircle(int r, int x0, int y0, bool on); // Draws a Circle at Point (X0|Y0) with the Radius r, either on or off, based on the boolean.
fillCircle(int r, int x0, int y0, bool on); // Draws a filled Circle at Point (X0|Y0) with the Radius r, either on or off, based on the boolean.
drawSquare(int left, int top, int width, int height, bool on); //Draws a Square with its top left Point at (Left|Top) with a specified width an height, either on or off, based on the boolean.
fillSquare(int left, int top, int width, int height, bool on); //Draws a filled Square with its top left Point at (Left|Top) with a specified width an height, either on or off, based on the boolean.

About

A Library for the I2C Screen on the EspIt Board

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 69.0%
  • C 25.7%
  • Other 5.3%