WPI438 0.
WPI438 USER MANUAL 1. Introduction To all residents of the European Union Important environmental information about this product This symbol on the device or the package indicates that disposal of the device after its lifecycle could harm the environment. Do not dispose of the unit (or batteries) as unsorted municipal waste; it should be taken to a specialized company for recycling. This device should be returned to your distributor or to a local recycling service. Respect the local environmental rules.
WPI438 5. Overview WPI438 OLED displays are great in many ways. They use very little power, are bright, easy to read with a large viewing angle and have high resolution 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. 7. Pin Layout VCC 3.
WPI438 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 scroll 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.
WPI438 #include "U8glib.h" // setup u8g object, please remove comment from one of the following constructor calls // 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); Velleman , UN-comment this line as it is now // Display which does not send AC VMA438 - void u8g_prepare(void) { u8g.setFont(u8g_font_6x10); u8g.
WPI438 u8g.drawLine(7+a*2, 10, 60, 55); u8g.drawLine(7+a*3, 10, 80, 55); u8g.drawLine(7+a*4, 10, 100, 55); } void u8g_triangle(uint8_t a) { uint16_t offset = a; u8g.drawStr( 0, 0, "drawTriangle"); u8g.drawTriangle(14,7, 45,30, 10,40); u8g.drawTriangle(14+offset,7-offset, 45+offset,30-offset, 57+offset,10-offset); u8g.drawTriangle(57+offset*2,10, 45+offset*2,30, 86+offset*2,53); u8g.
WPI438 else if ( u8g.getMode() == U8G_MODE_GRAY2BIT ) { u8g.drawStr( 66, 0, "Gray Level"); u8g.setColorIndex(1); u8g.drawBox(0, 4, 64, 32); u8g.drawBox(70, 20, 4, 12); u8g.setColorIndex(2); u8g.drawBox(0+1*a, 4+1*a, 64-2*a, 32-2*a); u8g.drawBox(74, 20, 4, 12); u8g.setColorIndex(3); u8g.drawBox(0+2*a, 4+2*a, 64-4*a, 32-4*a); u8g.drawBox(78, 20, 4, 12); } else { u8g.drawStr( 0, 12, "setScale2x2"); u8g.setScale2x2(); u8g.drawStr( 0, 6+a, "setScale2x2"); u8g.
WPI438 draw(); } while( u8g.nextPage() ); // increase the state draw_state++; if ( draw_state >= 9*8 ) draw_state = 0; // rebuild the picture after some delay //delay(150); } 8. More Information Please refer to the WPI438 product page on www.velleman.eu for more information. Use this device with original accessories only. Velleman nv cannot be held responsible in the event of damage or injury resulting from (incorrect) use of this device.