Velleman VMA437 User Manual

Velleman VMA437 User Manual

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

Advertisement

VMA437
1.3 INCH OLED SCREEN FOR ARDUINO
®
(SH1106 DRIVER, SPI)
USER MANUAL

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Velleman VMA437

  • Page 1 VMA437 1.3 INCH OLED SCREEN FOR ARDUINO ® (SH1106 DRIVER, SPI) 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 VMA437 you have to un-comment: U8GLIB_SH1106_128X64 u8g(4, 5, 6, 7);...
  • Page 4 VMA437 Compile and upload the sketch to your VMA100 and enjoy! The “Graphicstest” sketch with only the correct driver line for VMA437 looks like this: GraphicsTest.pde >>> Before compiling: Please remove comment from the constructor of the >>> connected graphics display (see below).
  • Page 5 VMA437 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 VMA437 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 VMA437 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