manualshive.com logo in svg
background image

 

VMA437 

V. 01 – 12/03/2018 

©Velleman nv 

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). 
   
  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.   
 
*/ 
 
#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); 

// Display which does not send AC  VMA437 - 

Velleman , UN-comment this line as it is now 
 
 
 

Содержание VMA437

Страница 1: ...VMA437 1 3 INCH OLED SCREEN FOR ARDUINO SH1106 DRIVER SPI USER MANUAL...

Страница 2: ...ions 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 t...

Страница 3: ...your Arduino Uno compatible board VMA100 this way Connection Vcc 5V Gnd Gnd D0 SCL D4 RES Reset D1 SCK D5 CS D6 DC D7 Go to the product page on www velleman eu and download the U8glib zip file Start...

Страница 4: ...VIDED 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...

Страница 5: ...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 dra...

Страница 6: ...8_t a if u8g getMode U8G_MODE_HICOLOR u8g getMode U8G_MODE_R3G3B2 draw background area is 128x128 u8g_uint_t r g b b a 5 for g 0 g 64 g for r 0 r 64 r u8g setRGB r 2 g 2 b u8g drawPixel g r u8g setRGB...

Страница 7: ...te 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_s...

Страница 8: ...ct 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 p...

Страница 9: ...shocks falls dust dirt humidity and by the article as well as its contents e g data loss compensation for loss of profits consumable goods parts or accessories that are subject to an aging process du...

Отзывы: