/** | |
* \file | |
* | |
* \brief Configuration File for LCDCA example. | |
* | |
* Copyright (c) 2012 Atmel Corporation. All rights reserved. | |
* | |
* \asf_license_start | |
* | |
* \page License | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* 1. Redistributions of source code must retain the above copyright notice, | |
* this list of conditions and the following disclaimer. | |
* | |
* 2. 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. | |
* | |
* 3. The name of Atmel may not be used to endorse or promote products derived | |
* from this software without specific prior written permission. | |
* | |
* 4. This software may only be redistributed and used in connection with an | |
* Atmel microcontroller product. | |
* | |
* THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED | |
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE | |
* EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL 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. | |
* | |
* \asf_license_stop | |
* | |
*/ | |
#ifndef CONF_EXAMPLE_H_INCLUDED | |
#define CONF_EXAMPLE_H_INCLUDED | |
/** This is the pin for the onboard PB0 button, corresponding to PC03. */ | |
#define NEXT_BUTTON GPIO_PUSH_BUTTON_0 | |
/** LCD contrast level */ | |
#define LCD_CONTRAST_LEVEL 30 | |
/** | |
* Here are definitions of C42364A glass LCD for this example | |
* @{ | |
*/ | |
/** \name LCD Common | |
* @{ | |
*/ | |
#define NB_OF_COM 4 | |
#define NB_OF_SEG 40 | |
/** @} */ | |
/** \name LCD Connection Initialization | |
* @{ | |
*/ | |
#define PORT_MASK NB_OF_SEG | |
#define LCD_DUTY (NB_OF_COM % 4) | |
/** @} */ | |
/** \name Digit Decoder | |
* @{ | |
*/ | |
/** 7-segment with 3 commons terminals */ | |
#define FIRST_7SEG_3C 255 /* 255 = unavailable */ | |
#define WIDTH_7SEG_3C 255 /* 255 = unavailable */ | |
#define DIR_7SEG_3C 0 /* 0 = from left to right */ | |
/** 7-segment with 4 commons terminals */ | |
#define FIRST_7SEG_4C 10 | |
#define WIDTH_7SEG_4C 4 | |
#define DIR_7SEG_4C 1 /* 1 = from right to left */ | |
/** 14-segment with 4 commons terminals */ | |
#define FIRST_14SEG_4C 36 | |
#define WIDTH_14SEG_4C 7 | |
#define DIR_14SEG_4C 1 /* 1 = from right to left */ | |
/** 16-segment with 3 commons terminals */ | |
#define FIRST_16SEG_3C 255 /* 255 = unavailable */ | |
#define WIDTH_16SEG_3C 255 /* 255 = unavailable */ | |
#define DIR_16SEG_3C 0 | |
/** @} */ | |
/** \name Pixel With Blinking feature | |
* @{ | |
*/ | |
#define ICON_USB 1, 0 | |
#define ICON_COLON 0, 0 | |
#define ICON_WLESS 2, 0 | |
#define ICON_AUDIO 3, 0 | |
#define ICON_BAT 0, 1 | |
#define ICON_ERROR 1, 1 | |
#define ICON_CHINESE 2, 1 | |
#define ICON_ARM 3, 1 | |
/** @} */ | |
/** \name Pixel With No-Blinking feature | |
* @{ | |
*/ | |
#define ICON_MINUS 0, 37 | |
#define ICON_MINUS_SEG1 3, 30 | |
#define ICON_MINUS_SEG2 0, 33 | |
#define ICON_DOT_1 0, 29 | |
#define ICON_DOT_2 3, 10 | |
#define ICON_DOT_3 3, 8 | |
#define ICON_DOT_4 3, 6 | |
#define ICON_BAT_LEVEL_1 0, 21 | |
#define ICON_BAT_LEVEL_2 0, 17 | |
#define ICON_BAT_LEVEL_3 0, 25 | |
#define ICON_AUDIO_PAUSE 3, 38 | |
#define ICON_AUDIO_PLAY 3, 34 | |
#define ICON_AM 3, 4 | |
#define ICON_PM 3, 26 | |
#define ICON_DEGREE_C 3, 22 | |
#define ICON_DEGREE_F 3, 18 | |
#define ICON_VOLT 3, 14 | |
#define ICON_MILLI_VOLT 0, 13 | |
/** @} */ | |
/** @} */ | |
#endif /* CONF_EXAMPLE_H_INCLUDED */ |