4 * \brief Configuration File for LCDCA example.
\r
6 * Copyright (c) 2012 Atmel Corporation. All rights reserved.
\r
12 * Redistribution and use in source and binary forms, with or without
\r
13 * modification, are permitted provided that the following conditions are met:
\r
15 * 1. Redistributions of source code must retain the above copyright notice,
\r
16 * this list of conditions and the following disclaimer.
\r
18 * 2. Redistributions in binary form must reproduce the above copyright notice,
\r
19 * this list of conditions and the following disclaimer in the documentation
\r
20 * and/or other materials provided with the distribution.
\r
22 * 3. The name of Atmel may not be used to endorse or promote products derived
\r
23 * from this software without specific prior written permission.
\r
25 * 4. This software may only be redistributed and used in connection with an
\r
26 * Atmel microcontroller product.
\r
28 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
\r
29 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
\r
30 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
\r
31 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
\r
32 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
\r
33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
\r
34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
\r
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
\r
36 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
\r
37 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
\r
38 * POSSIBILITY OF SUCH DAMAGE.
\r
44 #ifndef CONF_EXAMPLE_H_INCLUDED
\r
45 #define CONF_EXAMPLE_H_INCLUDED
\r
47 /** This is the pin for the onboard PB0 button, corresponding to PC03. */
\r
48 #define NEXT_BUTTON GPIO_PUSH_BUTTON_0
\r
50 /** LCD contrast level */
\r
51 #define LCD_CONTRAST_LEVEL 30
\r
54 * Here are definitions of C42364A glass LCD for this example
\r
58 /** \name LCD Common
\r
62 #define NB_OF_SEG 40
\r
65 /** \name LCD Connection Initialization
\r
68 #define PORT_MASK NB_OF_SEG
\r
69 #define LCD_DUTY (NB_OF_COM % 4)
\r
72 /** \name Digit Decoder
\r
75 /** 7-segment with 3 commons terminals */
\r
76 #define FIRST_7SEG_3C 255 /* 255 = unavailable */
\r
77 #define WIDTH_7SEG_3C 255 /* 255 = unavailable */
\r
78 #define DIR_7SEG_3C 0 /* 0 = from left to right */
\r
80 /** 7-segment with 4 commons terminals */
\r
81 #define FIRST_7SEG_4C 10
\r
82 #define WIDTH_7SEG_4C 4
\r
83 #define DIR_7SEG_4C 1 /* 1 = from right to left */
\r
85 /** 14-segment with 4 commons terminals */
\r
86 #define FIRST_14SEG_4C 36
\r
87 #define WIDTH_14SEG_4C 7
\r
88 #define DIR_14SEG_4C 1 /* 1 = from right to left */
\r
90 /** 16-segment with 3 commons terminals */
\r
91 #define FIRST_16SEG_3C 255 /* 255 = unavailable */
\r
92 #define WIDTH_16SEG_3C 255 /* 255 = unavailable */
\r
93 #define DIR_16SEG_3C 0
\r
96 /** \name Pixel With Blinking feature
\r
99 #define ICON_USB 1, 0
\r
100 #define ICON_COLON 0, 0
\r
101 #define ICON_WLESS 2, 0
\r
102 #define ICON_AUDIO 3, 0
\r
103 #define ICON_BAT 0, 1
\r
104 #define ICON_ERROR 1, 1
\r
105 #define ICON_CHINESE 2, 1
\r
106 #define ICON_ARM 3, 1
\r
109 /** \name Pixel With No-Blinking feature
\r
112 #define ICON_MINUS 0, 37
\r
113 #define ICON_MINUS_SEG1 3, 30
\r
114 #define ICON_MINUS_SEG2 0, 33
\r
115 #define ICON_DOT_1 0, 29
\r
116 #define ICON_DOT_2 3, 10
\r
117 #define ICON_DOT_3 3, 8
\r
118 #define ICON_DOT_4 3, 6
\r
119 #define ICON_BAT_LEVEL_1 0, 21
\r
120 #define ICON_BAT_LEVEL_2 0, 17
\r
121 #define ICON_BAT_LEVEL_3 0, 25
\r
122 #define ICON_AUDIO_PAUSE 3, 38
\r
123 #define ICON_AUDIO_PLAY 3, 34
\r
124 #define ICON_AM 3, 4
\r
125 #define ICON_PM 3, 26
\r
126 #define ICON_DEGREE_C 3, 22
\r
127 #define ICON_DEGREE_F 3, 18
\r
128 #define ICON_VOLT 3, 14
\r
129 #define ICON_MILLI_VOLT 0, 13
\r
133 #endif /* CONF_EXAMPLE_H_INCLUDED */
\r