Whadda WPI437 User Manual

Whadda WPI437 User Manual

1.3” oled screen for arduino (sh1106 driver, spi)

Advertisement

Quick Links

USER MANUAL
1.3" OLED screen for Arduino® (SH1106 driver, SPI)
EN
WPI437
whadda.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the WPI437 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Whadda WPI437

  • Page 1 USER MANUAL 1.3” OLED screen for Arduino® (SH1106 driver, SPI) WPI437 whadda.com...
  • Page 2: Safety Instructions

    If in doubt, contact your local waste disposal authorities. Thank you for choosing Whadda! Please read the manual thoroughly before bringing this device into service. If the device was damaged in transit, do not install or use it and contact your dealer.
  • Page 3: What Is Arduino

    What is Arduino® Arduino ® is an open-source prototyping platform based on easy-to-use hardware and boards are able to read inputs – light-on sensor, a finger on a button or a ® software. Arduino Twitter message – and turn it into an output – activating of a motor, turning on an LED, publishing something online.
  • Page 4 U8GLIB_SH1106_128X64 u8g(4, 5, 6, 7); Compile and upload the sketch to your WPB100 and enjoy! Code The “Graphicstest” sketch with only the correct driver line for WPI437 looks like this: GraphicsTest.pde >>> Before compiling: Please remove comment from the constructor of the >>>...
  • Page 5 // IMPORTANT NOTE: The following list is incomplete. The complete list of supported // devices with all constructor calls is here: https://github.com/olikraus/u8glib/wiki/device U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NO_ACK); // Display which does not send AC WPI437 - Velleman , UN-comment this line as it is now void u8g_prepare(void) { u8g.setFont(u8g_font_6x10); u8g.setFontRefHeightExtendedText(); u8g.setDefaultForegroundColor();...
  • Page 6 u8g.drawDisc(24+a,16,7); u8g.drawStr( 0, 30, "drawCircle"); u8g.drawCircle(10,18+30,9); u8g.drawCircle(24+a,16+30,7); void u8g_r_frame(uint8_t a) { u8g.drawStr( 0, 0, "drawRFrame/Box"); u8g.drawRFrame(5, 10,40,30, a+1); u8g.drawRBox(50, 10,25,40, a+1); void u8g_string(uint8_t a) { u8g.drawStr(30+a,31, " 0"); u8g.drawStr90(30,31+a, " 90"); u8g.drawStr180(30-a,31, " 180"); u8g.drawStr270(30,31-a, " 270"); void u8g_line(uint8_t a) { u8g.drawStr( 0, 0, "drawLine");...
  • Page 7 for( x = 0; x < 16; x++ ) { s[0] = y*16 + x + 160; u8g.drawStr(x*7, y*10+10, s); void u8g_extra_page(uint8_t a) if ( u8g.getMode() == U8G_MODE_HICOLOR || u8g.getMode() == U8G_MODE_R3G3B2) { /* draw background (area is 128x128) */ u8g_uint_t r, g, b;...
  • Page 8 case 1: u8g_disc_circle(draw_state&7); break; case 2: u8g_r_frame(draw_state&7); break; case 3: u8g_string(draw_state&7); break; case 4: u8g_line(draw_state&7); break; case 5: u8g_triangle(draw_state&7); break; case 6: u8g_ascii_1(); break; case 7: u8g_ascii_2(); break; case 8: u8g_extra_page(draw_state&7); break; void setup(void) { // flip screen, if required //u8g.setRot180();...
  • Page 9 Modifications and typographical errors reserved - © Velleman Group nv. WPI437_v01 Velleman Group nv, Legen Heirweg 33 - 9890 Gavere...

Table of Contents