background image

 

WPI438 

V. 01 

 22/12/2021 

©Velleman nv 

Go to the product page on 

www.velleman.eu

 and download the U8glib.zip file. 

Start the Arduino

®

 IDE and import this library: Sketch 

 Include Library 

 Add Zip library. 

Once finished, go back to Sketch 

 Include Library 

 

Manage library’s, and sc

roll down until you find the 

U8glib library. Select this library and 

tap “Update”

. Now you have the latest version with examples. 

 
Go to Files 

 Examples and scroll down to U8glib. Open the example Graphicstest. 

 

In the sketch “

G

raphicstest”, 

several types of displays can be selected. J

ust “un

-

comment” the one 

you need. 

For the WPI438 you have to un-comment:  
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NO_ACK);  // Display which does not send AC 
 
Compile and upload the sketch to your Arduino

®

 compatible board and enjoy! 

 
The 

“G

raphicstest

 sketch with only the correct driver line for VMA438 looks like this: 

 

 

/* 
 
  GraphicsTest.pde 
   
  >>> Before compiling: Please remove comment from the constructor of the  
  >>> connected graphics display (see below). 
   
  Universal 8bit Graphics Library, https://github.com/olikraus/u8glib/ 
   
  Copyright (c) 2012, [email protected] 
  All rights reserved. 
 
  Redistribution and use in source and binary forms, with or without modification,  
  are permitted provided that the following conditions are met: 
 
  * Redistributions of source code must retain the above copyright notice, this list  
    of conditions and the following disclaimer. 
     
  * Redistributions in binary form must reproduce the above copyright notice, this  
    list of conditions and the following disclaimer in the documentation and/or other  
    materials provided with the distribution. 
 
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND  
  CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,  
  INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF  
  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE  
  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR  
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,  
  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT  
  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;  
  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER  
  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,  
  STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)  
  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF  
  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.   
 
*/ 
 

Summary of Contents for WPI438

Page 1: ...WPI438 0 96 INCH OLED SCREEN WITH I2C FOR ARDUINO USER MANUAL ...

Page 2: ...h the functions of the device before actually using it All modifications of the device are forbidden for safety reasons Damage caused by user modifications to the device is not covered by the warranty Only use the device for its intended purpose Using the device in an unauthorised way will void the warranty Damage caused by disregard of certain guidelines in this manual is not covered by the warra...

Page 3: ...ution considering their small size resolution 128 x 64 dots viewing angle 160 working voltage 3 to 5 V recommended library U8glib interface I2C driver SSD1306 working temperature 30 C to 70 C OLED colour blue I O level 3 3 5 V dimensions 27 x 27 mm 6 Pin Layout VCC 3 3 5 V power supply Gnd ground SCL serial clock line SDA serial data line 7 Example Connection Vcc 5V Gnd Gnd SCL A5 SDA A4 ...

Page 4: ... c 2012 olikraus gmail com All rights reserved Redistribution and use in source and binary forms with or without modification are permitted provided that the following conditions are met Redistributions of source code must retain the above copyright notice this list of conditions and the following disclaimer Redistributions in binary form must reproduce the above copyright notice this list of cond...

Page 5: ...ultForegroundColor u8g setFontPosTop void u8g_box_frame uint8_t a u8g drawStr 0 0 drawBox u8g drawBox 5 10 20 10 u8g drawBox 10 a 15 30 7 u8g drawStr 0 30 drawFrame u8g drawFrame 5 10 30 20 10 u8g drawFrame 10 a 15 30 30 7 void u8g_disc_circle uint8_t a u8g drawStr 0 0 drawDisc u8g drawDisc 10 18 9 u8g drawDisc 24 a 16 7 u8g drawStr 0 30 drawCircle u8g drawCircle 10 18 30 9 u8g drawCircle 24 a 16 ...

Page 6: ...fset 40 offset 45 offset 30 offset 86 offset 53 offset void u8g_ascii_1 char s 2 uint8_t x y u8g drawStr 0 0 ASCII page 1 for y 0 y 6 y for x 0 x 16 x s 0 y 16 x 32 u8g drawStr x 7 y 10 10 s void u8g_ascii_2 char s 2 uint8_t x y u8g drawStr 0 0 ASCII page 2 for y 0 y 6 y 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 getMod...

Page 7: ...wStr 0 6 a setScale2x2 u8g undoScale uint8_t draw_state 0 void draw void u8g_prepare switch draw_state 3 case 0 u8g_box_frame draw_state 7 break 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_ext...

Page 8: ...responsible in the event of damage or injury resulting from incorrect use of this device For more info concerning this product and the latest version of this manual please visit our website www velleman eu The information in this manual is subject to change without prior notice COPYRIGHT NOTICE The copyright to this manual is owned by Velleman nv All worldwide rights reserved No part of this manua...

Reviews: