Library for Modtronix im4OLED board with 128x64 OLED and 4 buttons. For details, see product page http://modtronix.com/im4oled.html. Is a clone of Adafruit_GFX library, with some additional code added.

Fork of Adafruit_GFX by Neal Horman

Committer:
modtronix-com
Date:
Fri Aug 19 15:44:25 2016 +1000
Revision:
27:dd7d538d3849
Parent:
23:44309099c532
Added tag v1.1 for changeset ef08580c35df

Who changed what in which revision?

UserRevisionLine numberNew contents of line
modtronix-com 23:44309099c532 1 /**
modtronix-com 23:44309099c532 2 * File: im4oled_default_config.h
modtronix-com 23:44309099c532 3 *
modtronix-com 23:44309099c532 4 * Author: Modtronix Engineering - www.modtronix.com
modtronix-com 23:44309099c532 5 *
modtronix-com 23:44309099c532 6 * Description:
modtronix-com 23:44309099c532 7 *
modtronix-com 23:44309099c532 8 * Software License Agreement:
modtronix-com 23:44309099c532 9 * This software has been written or modified by Modtronix Engineering. The code
modtronix-com 23:44309099c532 10 * may be modified and can be used free of charge for commercial and non commercial
modtronix-com 23:44309099c532 11 * applications. If this is modified software, any license conditions from original
modtronix-com 23:44309099c532 12 * software also apply. Any redistribution must include reference to 'Modtronix
modtronix-com 23:44309099c532 13 * Engineering' and web link(www.modtronix.com) in the file header.
modtronix-com 23:44309099c532 14 *
modtronix-com 23:44309099c532 15 * THIS SOFTWARE IS PROVIDED IN AN 'AS IS' CONDITION. NO WARRANTIES, WHETHER EXPRESS,
modtronix-com 23:44309099c532 16 * IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
modtronix-com 23:44309099c532 17 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE
modtronix-com 23:44309099c532 18 * COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
modtronix-com 23:44309099c532 19 * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
modtronix-com 23:44309099c532 20 */
modtronix-com 23:44309099c532 21 #ifndef _IM4OLED_DEFAULT_CONFIG_H_
modtronix-com 23:44309099c532 22 #define _IM4OLED_DEFAULT_CONFIG_H_
modtronix-com 23:44309099c532 23
modtronix-com 23:44309099c532 24 //This file requires a file called "modtronix_config.h" to exist in the project!
modtronix-com 23:44309099c532 25 //Use this file to override any of the default defines below. Do NOT edit this file!
modtronix-com 23:44309099c532 26 #if !defined(NO_MODTRONIX_CONFIG)
modtronix-com 23:44309099c532 27 #include "modtronix_config.h"
modtronix-com 23:44309099c532 28 #endif
modtronix-com 23:44309099c532 29
modtronix-com 23:44309099c532 30 // Uncomment this to turn off the builtin splash
modtronix-com 23:44309099c532 31 #if !defined(OLED_HAS_SPLASH)
modtronix-com 23:44309099c532 32 #define OLED_HAS_SPLASH 0
modtronix-com 23:44309099c532 33 #endif
modtronix-com 23:44309099c532 34
modtronix-com 23:44309099c532 35 //Don't use std::vector. This saves a lot of Flash space. Also, std::vector uses heap which is not always desirable.
modtronix-com 23:44309099c532 36 //When NOT using std::vector, OLED_HEIGHT and OLED_WIDTH are required.
modtronix-com 23:44309099c532 37 #if !defined(OLED_USE_VECTOR)
modtronix-com 23:44309099c532 38 #define OLED_USE_VECTOR 0
modtronix-com 23:44309099c532 39 #endif
modtronix-com 23:44309099c532 40
modtronix-com 23:44309099c532 41 // Used when std::vector not used. In this case, buffer has to be assigned statically.
modtronix-com 23:44309099c532 42 #if !defined(OLED_HEIGHT)
modtronix-com 23:44309099c532 43 #define OLED_HEIGHT 64
modtronix-com 23:44309099c532 44 #endif
modtronix-com 23:44309099c532 45
modtronix-com 23:44309099c532 46 #if !defined(OLED_WIDTH)
modtronix-com 23:44309099c532 47 #define OLED_WIDTH 128
modtronix-com 23:44309099c532 48 #endif
modtronix-com 23:44309099c532 49
modtronix-com 23:44309099c532 50 // Uncomment this to enable all functionality
modtronix-com 23:44309099c532 51 #if !defined(GFX_ENABLE_ABSTRACTS)
modtronix-com 23:44309099c532 52 #define GFX_ENABLE_ABSTRACTS 0
modtronix-com 23:44309099c532 53 #endif
modtronix-com 23:44309099c532 54
modtronix-com 23:44309099c532 55 // Uncomment this to enable only runtime font scaling, without all the rest of the Abstracts
modtronix-com 23:44309099c532 56 #if !defined(GFX_SIZEABLE_TEXT)
modtronix-com 23:44309099c532 57 #define GFX_SIZEABLE_TEXT 1
modtronix-com 23:44309099c532 58 #endif
modtronix-com 23:44309099c532 59
modtronix-com 23:44309099c532 60 #endif