Wim Huiskamp / TM1637

Dependents:   mbed_TM1637 TM1637_test

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TM1637_Config.h Source File

TM1637_Config.h

00001 /* mbed TM1637 Library, for TM1637 LEDcontroller
00002  * Copyright (c) 2016, v01: WH, Initial version
00003  *               2017, v02: WH, Added RobotDyn 6 Digit module,
00004  *                          Added Eyewink 6 Digit + 6 Keys module, 
00005  *                          Constructor adapted to 2 pins: dio, clk 
00006  *
00007  * Permission is hereby granted, free of charge, to any person obtaining a copy
00008  * of this software and associated documentation files (the "Software"), to deal
00009  * in the Software without restriction, including without limitation the rights
00010  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00011  * copies of the Software, and to permit persons to whom the Software is
00012  * furnished to do so, subject to the following conditions:
00013  *
00014  * The above copyright notice and this permission notice shall be included in
00015  * all copies or substantial portions of the Software.
00016  *
00017  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00018  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00019  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
00020  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00021  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00022  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
00023  * THE SOFTWARE.
00024  */
00025 
00026 #ifndef TM1637_CONFIG_H
00027 #define TM1637_CONFIG_H
00028 
00029 // Select one of the testboards for TM1637 LED controller
00030 #define TM1637_TEST   0
00031 #define CATALEX_TEST  0 
00032 #define ROBOTDYN_TEST 0 
00033 #define EYEWINK_TEST  1 
00034 
00035 // Select when you wish to keep the DEPRECATED Constructor with 3 Pins for mosi, miso and sclk
00036 // The new component Constructor uses only 2 pins: dio and clk
00037 #define SPI           1 
00038 
00039 // Select the display mode: only digits and hex or ASCII
00040 #define SHOW_ASCII    1 
00041 
00042 #endif