Welcome, Guest
Username: Password: Remember me

TOPIC: Arduino MEGA - U8glib Libraries Installation.

Arduino MEGA - U8glib Libraries Installation. 9 months 3 weeks ago #1232

  • Ray
  • Ray's Avatar
  • OFFLINE
  • Platinum Member
  • Posts: 532
  • Thank you received: 116
  • Karma: 27
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...

libraries1.jpg



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)


libraries2.jpg



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() {  
  u8g.setFont(u8g_font_unifont);
  u8g.setColorIndex(1); 
}
 
void loop() {  
  u8g.firstPage();
  do  {  
        draw();
      } while( u8g.nextPage() );
  delay(1000);   
}
void draw()
{
  u8g.drawStr( 0, 20, "Hello World");
}
Last Edit: 6 months 1 day ago by Ray.
The administrator has disabled public write access.

Arduino MEGA - U8glib Libraries Installation. 7 hours 51 minutes ago #1597

michael kors bags
pandora bracelet
[url=http://www.true--religion.us.com/]true religion sale[/url]
cartier jewelry
[url=http://www.rayban--glasses.us.com/]ray ban eyeglasses[/url]
pandora necklace
[url=http://www.balenciaga--shoes.us.com/]balenciaga bag[/url]
jordan shoes
[url=http://www.nike--shoes.co.uk/]nike air max 97[/url]
[url=http://www.ralphlauren--polo.us.com/]ralph lauren outlet[/url]
puma shoes
nike kd
moncler sale
harden shoes
mont blanc pens
salomon speedcross 3
[url=http://www.pandora--jewelrys.us.com/]pandora rings[/url]
The administrator has disabled public write access.
Time to create page: 0.243 seconds
Powered by Kunena Forum
Joomla SEF URLs by Artio

Our Instagram

Follow us

You can also follow us on:

facebook   google   instagram

pinterest   youtube   twitter