hit counter script
Velleman VMA438 User Manual
Velleman VMA438 User Manual

Velleman VMA438 User Manual

0.96 inch oled screen with i2c for arduino

Advertisement

VMA438
0.96 INCH OLED SCREEN WITH I2C FOR ARDUINO
®
USER MANUAL

Advertisement

Table of Contents
loading

Summary of Contents for Velleman VMA438

  • Page 1 VMA438 0.96 INCH OLED SCREEN WITH I2C FOR ARDUINO ® USER MANUAL...
  • Page 2: Safety Instructions

     Nor Velleman nv nor its dealers can be held responsible for any damage (extraordinary, incidental or indirect) – of any nature (financial, physical…) arising from the possession, use or failure of this product.
  • Page 3: Pin Layout

    Go to Files  Examples and scroll down to U8glib. Open the example Graphicstest. In the sketch “Graphicstest”, several types of displays can be selected. Just “un-comment” the one you need. For the VMA438 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 VMA100 and enjoy! V.
  • Page 4 VMA438 The “Graphicstest” 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, olikraus@gmail.com All rights reserved.
  • Page 5 VMA438 void u8g_prepare(void) { u8g.setFont(u8g_font_6x10); u8g.setFontRefHeightExtendedText(); u8g.setDefaultForegroundColor(); 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+30,7);...
  • Page 6 VMA438 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;...
  • Page 7 VMA438 else u8g.drawStr( 0, 12, "setScale2x2"); u8g.setScale2x2(); u8g.drawStr( 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;...
  • Page 8: Copyright Notice

    © COPYRIGHT NOTICE The copyright to this manual is owned by Velleman nv. All worldwide rights reserved. No part of this manual may be copied, reproduced, translated or reduced to any electronic medium or otherwise without the prior written consent of the copyright holder.
  • Page 9 • Velleman® can decide to replace an article with an equivalent article, or to refund the retail value totally or partially when the complaint is valid and a free repair or replacement of the article is impossible, or if the expenses are out of proportion.

Table of Contents