Welcome, Guest
Username: Password: Remember me

TOPIC: Arduino MEGA - U8glib Libraries Installation.

Arduino MEGA - U8glib Libraries Installation. 5 years 1 month ago #1232

  • Ray
  • Ray's Avatar
  • Moderator
  • Posts: 702
  • Thank you received: 152
  • Karma: 44
pedalSHIELD MEGA uses a 1.3 inches (0.96 are also compatible) 4 pins OLED display, with I2C communication.

In order to use it and be able to compile the effects, you would need to install the U8glib Libraries, there are other methods, but this is the easiest one:

1. Open Arduino IDE and click on Sketch\Include Library\Manage Libraries...


2. In the search box type U8Glib , scrolling down you will find it, click on More info and install the latest version (I am using 1.19.1)


Once you have installed it, when you click again on Sketch\Include Library you will see the U8glib on the main list.

3. You can verify that all is correct loading this "Hello World" sample code:
#include "U8glib.h"
U8GLIB_SH1106_128X64 u8g(U8G_I2C_OPT_NO_ACK);  // Display which does not send ACK
void setup() {  
void loop() {  
  do  {  
      } while( u8g.nextPage() );
void draw()
  u8g.drawStr( 0, 20, "Hello World");
Last Edit: 4 years 9 months ago by Ray.
The administrator has disabled public write access.
Time to create page: 0.107 seconds
Powered by Kunena Forum
Joomla SEF URLs by Artio