Y SI / lib_LCD_i2c_SPTLYI

Dependents:   TD1_exo1 TD1_exe1_suite TP3_exo1 TP3_exo2 ... more

Committer:
YSI
Date:
Mon Jan 30 13:11:56 2017 +0000
Revision:
9:0acc7e2330c6
Parent:
5:feba12f32d06
Child:
10:246c6f2dc45b
Add LCD_I2C Classe default params

Who changed what in which revision?

UserRevisionLine numberNew contents of line
YSI 1:a805daa83dd0 1 /** LCD i2c SPTLYI class
YSI 4:38d0fe9c8eb6 2 *
YSI 4:38d0fe9c8eb6 3 * @purpose library for i2c LCD
YSI 4:38d0fe9c8eb6 4 *
YSI 4:38d0fe9c8eb6 5 * Utilisée pour écrire sur l'afficheur i2c SPTLYI 2x16.
YSI 1:a805daa83dd0 6 *
YSI 5:feba12f32d06 7 * http://fr.farnell.com/midas/mccog21605b6w-sptlyi/lcd-cog-2x16-stn-vert-b-l-i2c/dp/2063208
YSI 5:feba12f32d06 8 *
YSI 2:cd7437c66c6b 9 * Copyright (c) 2014, cstyles (http://mbed.org)
YSI 2:cd7437c66c6b 10 *
YSI 1:a805daa83dd0 11 * Exemple:
YSI 1:a805daa83dd0 12 * @code
YSI 1:a805daa83dd0 13 * #include "mbed.h"
YSI 1:a805daa83dd0 14 * #include "lib_LCD_i2c_SPTLYI.h"
YSI 9:0acc7e2330c6 15 *
YSI 9:0acc7e2330c6 16 * LCD_I2C LCD;
YSI 9:0acc7e2330c6 17 * //LCD_I2C LCD(p28, p27, p26, 0x7C); //sda, scl, rst, only 4 slave address 0x7C 0x7D 0x7E 0x7F
YSI 1:a805daa83dd0 18 *
YSI 4:38d0fe9c8eb6 19 * int main()
YSI 4:38d0fe9c8eb6 20 * {
YSI 9:0acc7e2330c6 21 * while(1)
YSI 9:0acc7e2330c6 22 * {
YSI 9:0acc7e2330c6 23 * for(int i = 0; i < 9999; i++)
YSI 9:0acc7e2330c6 24 * {
YSI 9:0acc7e2330c6 25 * LCD.clear();
YSI 9:0acc7e2330c6 26 * LCD.print(i);
YSI 9:0acc7e2330c6 27 * wait(0.25);
YSI 9:0acc7e2330c6 28 * }
YSI 9:0acc7e2330c6 29 * }
YSI 1:a805daa83dd0 30 * }
YSI 1:a805daa83dd0 31 * @endcode
YSI 2:cd7437c66c6b 32 * @file lib_LCD_i2c_SPTLYI.h
YSI 2:cd7437c66c6b 33 * @date Jan 2014
YSI 2:cd7437c66c6b 34 * @author Yannic Simon
YSI 1:a805daa83dd0 35 */
YSI 1:a805daa83dd0 36
YSI 0:0549f4c4896c 37 #ifndef DEF_lib_LCD_i2c_SPTLYI_H
YSI 0:0549f4c4896c 38 #define DEF_lib_LCD_i2c_SPTLYI_H
YSI 0:0549f4c4896c 39
YSI 0:0549f4c4896c 40 #include "mbed.h"
YSI 4:38d0fe9c8eb6 41 #include <cstdarg>
YSI 0:0549f4c4896c 42
YSI 3:7ac1d2432a96 43 /** LCD_I2C class
YSI 3:7ac1d2432a96 44 */
YSI 0:0549f4c4896c 45 class LCD_I2C : public I2C
YSI 0:0549f4c4896c 46 {
YSI 0:0549f4c4896c 47 public:
YSI 1:a805daa83dd0 48 /** Creer une instance LCD_I2C
YSI 9:0acc7e2330c6 49 * sur les pins sda, scl, rst avec 1 des 4 adresses possiblent 0x7C 0x7D 0x7E 0x7F
YSI 5:feba12f32d06 50 *
YSI 9:0acc7e2330c6 51 * @param pin_sda par defaut p28
YSI 9:0acc7e2330c6 52 * @param pin_scl par defaut p27
YSI 9:0acc7e2330c6 53 * @param pin_rst par defaut p26
YSI 9:0acc7e2330c6 54 * @param address par defaut 0x7C
YSI 1:a805daa83dd0 55 */
YSI 9:0acc7e2330c6 56 LCD_I2C(PinName pin_sda = p28, PinName pin_scl = p27, PinName pin_rst = p26, int address = 0x7C);
YSI 0:0549f4c4896c 57
YSI 1:a805daa83dd0 58 /** Efface l'afficheur et renvoie le curseur en position X = 0 et Y = 0
YSI 1:a805daa83dd0 59 *
YSI 1:a805daa83dd0 60 * @param aucun
YSI 1:a805daa83dd0 61 * @returns acknoledge write i2c
YSI 1:a805daa83dd0 62 */
YSI 0:0549f4c4896c 63 int clear(void);
YSI 4:38d0fe9c8eb6 64
YSI 1:a805daa83dd0 65 /** renvoie le curseur en position X = 0 et Y = 0
YSI 1:a805daa83dd0 66 *
YSI 1:a805daa83dd0 67 * @param aucun
YSI 1:a805daa83dd0 68 * @returns acknoledge write i2c
YSI 1:a805daa83dd0 69 */
YSI 0:0549f4c4896c 70 int return_home_cursor(void);
YSI 4:38d0fe9c8eb6 71
YSI 4:38d0fe9c8eb6 72 /** positionne le curseur sur la ligne (0 à 39)
YSI 1:a805daa83dd0 73 *
YSI 1:a805daa83dd0 74 * @param X est la position sur la ligne
YSI 1:a805daa83dd0 75 * @returns acknoledge write i2c
YSI 1:a805daa83dd0 76 */
YSI 9:0acc7e2330c6 77 int set_position_cursor(int X=0);
YSI 4:38d0fe9c8eb6 78
YSI 4:38d0fe9c8eb6 79 /** positionne le curseur horizontalement (0 à 39) et verticalement (0 à 1)
YSI 1:a805daa83dd0 80 *
YSI 1:a805daa83dd0 81 * @param X est la position sur la ligne
YSI 5:feba12f32d06 82 * @param Y est la position sur la colone
YSI 1:a805daa83dd0 83 * @returns acknoledge write i2c
YSI 1:a805daa83dd0 84 */
YSI 9:0acc7e2330c6 85 int set_position_cursor(int X=0, int Y=0);
YSI 4:38d0fe9c8eb6 86
YSI 1:a805daa83dd0 87 /** renvoie la position horizontale du curseur
YSI 1:a805daa83dd0 88 *
YSI 1:a805daa83dd0 89 * @param aucun
YSI 4:38d0fe9c8eb6 90 * @returns X est la position sur la ligne (0 à 39)
YSI 1:a805daa83dd0 91 */
YSI 1:a805daa83dd0 92 int get_X_position_cursor(void);
YSI 4:38d0fe9c8eb6 93
YSI 1:a805daa83dd0 94 /** renvoie la position verticale du curseur
YSI 1:a805daa83dd0 95 *
YSI 1:a805daa83dd0 96 * @param aucun
YSI 4:38d0fe9c8eb6 97 * @returns Y est la position sur la colone (0 à 1)
YSI 1:a805daa83dd0 98 */
YSI 1:a805daa83dd0 99 int get_Y_position_cursor(void);
YSI 4:38d0fe9c8eb6 100
YSI 4:38d0fe9c8eb6 101 /** positionne le curseur au début de la ligne suivante
YSI 1:a805daa83dd0 102 *
YSI 1:a805daa83dd0 103 * @param aucun
YSI 1:a805daa83dd0 104 * @returns acknoledge write i2c
YSI 1:a805daa83dd0 105 */
YSI 0:0549f4c4896c 106 int shift_line_cursor(void);
YSI 4:38d0fe9c8eb6 107
YSI 1:a805daa83dd0 108 /** active l'affichage du curseur
YSI 1:a805daa83dd0 109 *
YSI 1:a805daa83dd0 110 * @param aucun
YSI 1:a805daa83dd0 111 * @returns acknoledge write i2c
YSI 1:a805daa83dd0 112 */
YSI 1:a805daa83dd0 113 int turn_on_cursor(void);
YSI 4:38d0fe9c8eb6 114
YSI 1:a805daa83dd0 115 /** désactive l'affichage du curseur
YSI 1:a805daa83dd0 116 *
YSI 1:a805daa83dd0 117 * @param aucun
YSI 1:a805daa83dd0 118 * @returns acknoledge write i2c
YSI 1:a805daa83dd0 119 */
YSI 1:a805daa83dd0 120 int turn_off_cursor(void);
YSI 4:38d0fe9c8eb6 121
YSI 1:a805daa83dd0 122 /** active l'affichage
YSI 1:a805daa83dd0 123 *
YSI 1:a805daa83dd0 124 * @param aucun
YSI 1:a805daa83dd0 125 * @returns acknoledge write i2c
YSI 1:a805daa83dd0 126 */
YSI 1:a805daa83dd0 127 int turn_on_display(void);
YSI 4:38d0fe9c8eb6 128
YSI 1:a805daa83dd0 129 /** désactive l'affichage
YSI 1:a805daa83dd0 130 *
YSI 1:a805daa83dd0 131 * @param aucun
YSI 1:a805daa83dd0 132 * @returns acknoledge write i2c
YSI 1:a805daa83dd0 133 */
YSI 1:a805daa83dd0 134 int turn_off_display(void);
YSI 4:38d0fe9c8eb6 135
YSI 1:a805daa83dd0 136 /** déplace le curseur vers la gauche
YSI 1:a805daa83dd0 137 *
YSI 1:a805daa83dd0 138 * @param n est le nombre de déplacement du curseur
YSI 1:a805daa83dd0 139 * @returns aucun
YSI 1:a805daa83dd0 140 */
YSI 9:0acc7e2330c6 141 void shift_left_cursor(int n=1);
YSI 4:38d0fe9c8eb6 142
YSI 1:a805daa83dd0 143 /** déplace le curseur vers la droite
YSI 1:a805daa83dd0 144 *
YSI 1:a805daa83dd0 145 * @param n est le nombre de déplacement du curseur
YSI 1:a805daa83dd0 146 * @returns aucun
YSI 1:a805daa83dd0 147 */
YSI 9:0acc7e2330c6 148 void shift_right_cursor(int n=1);
YSI 4:38d0fe9c8eb6 149
YSI 1:a805daa83dd0 150 /** déplace l'affichage vers la gauche
YSI 1:a805daa83dd0 151 *
YSI 1:a805daa83dd0 152 * @param n est le nombre de déplacement de l'affichage
YSI 1:a805daa83dd0 153 * @returns aucun
YSI 1:a805daa83dd0 154 */
YSI 9:0acc7e2330c6 155 void shift_left_display(int n=1);
YSI 4:38d0fe9c8eb6 156
YSI 1:a805daa83dd0 157 /** déplace l'affichage vers la droite
YSI 1:a805daa83dd0 158 *
YSI 1:a805daa83dd0 159 * @param n est le nombre de déplacement de l'affichage
YSI 1:a805daa83dd0 160 * @returns aucun
YSI 1:a805daa83dd0 161 */
YSI 9:0acc7e2330c6 162 void shift_right_display(int n=1);
YSI 4:38d0fe9c8eb6 163
YSI 1:a805daa83dd0 164 /** active le déplacement automatique de l'affichage vers la droite
YSI 1:a805daa83dd0 165 *
YSI 1:a805daa83dd0 166 * @param aucun
YSI 1:a805daa83dd0 167 * @returns acknoledge write i2c
YSI 1:a805daa83dd0 168 */
YSI 0:0549f4c4896c 169 int enable_auto_shift_right_display(void);
YSI 4:38d0fe9c8eb6 170
YSI 1:a805daa83dd0 171 /** active le déplacement automatique de l'affichage vers la gauche
YSI 1:a805daa83dd0 172 *
YSI 1:a805daa83dd0 173 * @param aucun
YSI 1:a805daa83dd0 174 * @returns acknoledge write i2c
YSI 1:a805daa83dd0 175 */
YSI 0:0549f4c4896c 176 int enable_auto_shift_left_display(void);
YSI 4:38d0fe9c8eb6 177
YSI 1:a805daa83dd0 178 /** désactive le déplacement automatique de l'affichage
YSI 1:a805daa83dd0 179 *
YSI 1:a805daa83dd0 180 * @param aucun
YSI 1:a805daa83dd0 181 * @returns acknoledge write i2c
YSI 1:a805daa83dd0 182 */
YSI 0:0549f4c4896c 183 int disable_auto_shift_display(void);
YSI 4:38d0fe9c8eb6 184
YSI 1:a805daa83dd0 185 /** configure le déplacement automatique du curseur vers la droite
YSI 1:a805daa83dd0 186 *
YSI 1:a805daa83dd0 187 * @param aucun
YSI 1:a805daa83dd0 188 * @returns acknoledge write i2c
YSI 1:a805daa83dd0 189 */
YSI 0:0549f4c4896c 190 int auto_shift_right_cursor(void);
YSI 4:38d0fe9c8eb6 191
YSI 1:a805daa83dd0 192 /** configure le déplacement automatique du curseur vers la droite
YSI 1:a805daa83dd0 193 *
YSI 1:a805daa83dd0 194 * @param aucun
YSI 1:a805daa83dd0 195 * @returns acknoledge write i2c
YSI 1:a805daa83dd0 196 */
YSI 0:0549f4c4896c 197 int auto_shift_left_cursor(void);
YSI 4:38d0fe9c8eb6 198
YSI 4:38d0fe9c8eb6 199 /** renvoie le caractere se trouvant à la position du curseur
YSI 4:38d0fe9c8eb6 200 *
YSI 5:feba12f32d06 201 * @param aucun
YSI 5:feba12f32d06 202 * @returns le caractere se trouvant à position du curseur
YSI 4:38d0fe9c8eb6 203 */
YSI 4:38d0fe9c8eb6 204 char read(void);
YSI 4:38d0fe9c8eb6 205
YSI 4:38d0fe9c8eb6 206 /** renvoie le caractere se trouvant à la position spécifiée
YSI 4:38d0fe9c8eb6 207 *
YSI 4:38d0fe9c8eb6 208 * @param X est la position sur la ligne
YSI 5:feba12f32d06 209 * @param Y est la position sur la colone
YSI 5:feba12f32d06 210 * @returns le caractere se trouvant à position X et Y
YSI 4:38d0fe9c8eb6 211 */
YSI 4:38d0fe9c8eb6 212 char read(int X, int Y);
YSI 4:38d0fe9c8eb6 213
YSI 1:a805daa83dd0 214 /** affiche la variable sur l'afficheur
YSI 1:a805daa83dd0 215 *
YSI 5:feba12f32d06 216 * @param s la chaine de caractère à afficher
YSI 5:feba12f32d06 217 * @param ... les arguments à afficher
YSI 1:a805daa83dd0 218 * @returns acknoledge write i2c
YSI 5:feba12f32d06 219 */
YSI 5:feba12f32d06 220 int print(const char *s, ... );
YSI 5:feba12f32d06 221 int print(char *s);
YSI 0:0549f4c4896c 222 int print(char c);
YSI 0:0549f4c4896c 223 int print(char c1, char c2);
YSI 0:0549f4c4896c 224 int print(char c1, char c2, char c3);
YSI 1:a805daa83dd0 225 int print(short nb);
YSI 1:a805daa83dd0 226 int print(unsigned short nb);
YSI 0:0549f4c4896c 227 int print(int nb);
YSI 1:a805daa83dd0 228 int print(unsigned int nb);
YSI 1:a805daa83dd0 229 int print(long long nb);
YSI 1:a805daa83dd0 230 int print(unsigned long long nb);
YSI 1:a805daa83dd0 231 int print(float nb);
YSI 0:0549f4c4896c 232 int print(double nb);
YSI 1:a805daa83dd0 233
YSI 4:38d0fe9c8eb6 234 /*int print(char *s, short nb);
YSI 1:a805daa83dd0 235 int print(char *s, short nb1, short nb2);
YSI 1:a805daa83dd0 236 int print(char *s, short nb1, unsigned short nb2);
YSI 1:a805daa83dd0 237 int print(char *s, unsigned short nb1, short nb2);
YSI 1:a805daa83dd0 238 int print(char *s, short nb1, int nb2);
YSI 1:a805daa83dd0 239 int print(char *s, int nb1, short nb2);
YSI 1:a805daa83dd0 240 int print(char *s, short nb1, unsigned int nb2);
YSI 1:a805daa83dd0 241 int print(char *s, unsigned int nb1, short nb2);
YSI 1:a805daa83dd0 242 int print(char *s, short nb1, long long nb2);
YSI 1:a805daa83dd0 243 int print(char *s, long long nb1, short nb2);
YSI 1:a805daa83dd0 244 int print(char *s, short nb1, unsigned long long nb2);
YSI 1:a805daa83dd0 245 int print(char *s, unsigned long long nb1, short nb2);
YSI 1:a805daa83dd0 246 int print(char *s, short nb1, float nb2);
YSI 1:a805daa83dd0 247 int print(char *s, float nb1, short nb2);
YSI 1:a805daa83dd0 248 int print(char *s, short nb1, double nb2);
YSI 1:a805daa83dd0 249 int print(char *s, double nb1, short nb2);
YSI 1:a805daa83dd0 250 int print(char *s, short nb1, short nb2, short nb3);
YSI 1:a805daa83dd0 251
YSI 1:a805daa83dd0 252 int print(char *s, short nb1, short nb2, unsigned short nb3);
YSI 1:a805daa83dd0 253 int print(char *s, short nb1, unsigned short nb2, short nb3);
YSI 1:a805daa83dd0 254 int print(char *s, short nb1, unsigned short nb2, unsigned short nb3);
YSI 1:a805daa83dd0 255 int print(char *s, unsigned short nb1, short nb2, short nb3);
YSI 1:a805daa83dd0 256 int print(char *s, unsigned short nb1, short nb2, unsigned short nb3);
YSI 1:a805daa83dd0 257 int print(char *s, unsigned short nb1, unsigned short nb2, short nb3);
YSI 1:a805daa83dd0 258
YSI 1:a805daa83dd0 259 int print(char *s, short nb1, short nb2, int nb3);
YSI 1:a805daa83dd0 260 int print(char *s, short nb1, int nb2, short nb3);
YSI 1:a805daa83dd0 261 int print(char *s, short nb1, int nb2, int nb3);
YSI 1:a805daa83dd0 262 int print(char *s, int nb1, short nb2, short nb3);
YSI 1:a805daa83dd0 263 int print(char *s, int nb1, short nb2, int nb3);
YSI 1:a805daa83dd0 264 int print(char *s, int nb1, int nb2, short nb3);
YSI 1:a805daa83dd0 265
YSI 1:a805daa83dd0 266 int print(char *s, short nb1, short nb2, unsigned int nb3);
YSI 1:a805daa83dd0 267 int print(char *s, short nb1, unsigned int nb2, short nb3);
YSI 1:a805daa83dd0 268 int print(char *s, short nb1, unsigned int nb2, unsigned int nb3);
YSI 1:a805daa83dd0 269 int print(char *s, unsigned int nb1, short nb2, short nb3);
YSI 1:a805daa83dd0 270 int print(char *s, unsigned int nb1, short nb2, unsigned int nb3);
YSI 1:a805daa83dd0 271 int print(char *s, unsigned int nb1, unsigned int nb2, short nb3);
YSI 1:a805daa83dd0 272
YSI 1:a805daa83dd0 273 int print(char *s, short nb1, short nb2, long long nb3);
YSI 1:a805daa83dd0 274 int print(char *s, short nb1, long long nb2, short nb3);
YSI 1:a805daa83dd0 275 int print(char *s, short nb1, long long nb2, long long nb3);
YSI 1:a805daa83dd0 276 int print(char *s, long long nb1, short nb2, short nb3);
YSI 1:a805daa83dd0 277 int print(char *s, long long nb1, short nb2, long long nb3);
YSI 1:a805daa83dd0 278 int print(char *s, long long nb1, long long nb2, short nb3);
YSI 1:a805daa83dd0 279
YSI 1:a805daa83dd0 280 int print(char *s, short nb1, short nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 281 int print(char *s, short nb1, unsigned long long nb2, short nb3);
YSI 1:a805daa83dd0 282 int print(char *s, short nb1, unsigned long long nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 283 int print(char *s, unsigned long long nb1, short nb2, short nb3);
YSI 1:a805daa83dd0 284 int print(char *s, unsigned long long nb1, short nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 285 int print(char *s, unsigned long long nb1, unsigned long long nb2, short nb3);
YSI 1:a805daa83dd0 286
YSI 1:a805daa83dd0 287 int print(char *s, short nb1, short nb2, float nb3);
YSI 1:a805daa83dd0 288 int print(char *s, short nb1, float nb2, short nb3);
YSI 1:a805daa83dd0 289 int print(char *s, short nb1, float nb2, float nb3);
YSI 1:a805daa83dd0 290 int print(char *s, float nb1, short nb2, short nb3);
YSI 1:a805daa83dd0 291 int print(char *s, float nb1, short nb2, float nb3);
YSI 1:a805daa83dd0 292 int print(char *s, float nb1, float nb2, short nb3);
YSI 1:a805daa83dd0 293
YSI 1:a805daa83dd0 294 int print(char *s, short nb1, short nb2, double nb3);
YSI 1:a805daa83dd0 295 int print(char *s, short nb1, double nb2, short nb3);
YSI 1:a805daa83dd0 296 int print(char *s, short nb1, double nb2, double nb3);
YSI 1:a805daa83dd0 297 int print(char *s, double nb1, short nb2, short nb3);
YSI 1:a805daa83dd0 298 int print(char *s, double nb1, short nb2, double nb3);
YSI 1:a805daa83dd0 299 int print(char *s, double nb1, double nb2, short nb3);
YSI 1:a805daa83dd0 300
YSI 1:a805daa83dd0 301
YSI 1:a805daa83dd0 302
YSI 1:a805daa83dd0 303 int print(char *s, unsigned short nb);
YSI 1:a805daa83dd0 304 int print(char *s, unsigned short nb1, unsigned short nb2);
YSI 1:a805daa83dd0 305 int print(char *s, unsigned short nb1, int nb2);
YSI 1:a805daa83dd0 306 int print(char *s, int nb1, unsigned short nb2);
YSI 1:a805daa83dd0 307 int print(char *s, unsigned short nb1, unsigned int nb2);
YSI 1:a805daa83dd0 308 int print(char *s, unsigned int nb1, unsigned short nb2);
YSI 1:a805daa83dd0 309 int print(char *s, unsigned short nb1, long long nb2);
YSI 1:a805daa83dd0 310 int print(char *s, long long nb1, unsigned short nb2);
YSI 1:a805daa83dd0 311 int print(char *s, unsigned short nb1, unsigned long long nb2);
YSI 1:a805daa83dd0 312 int print(char *s, unsigned long long nb1, unsigned short nb2);
YSI 1:a805daa83dd0 313 int print(char *s, unsigned short nb1, float nb2);
YSI 1:a805daa83dd0 314 int print(char *s, float nb1, unsigned short nb2);
YSI 1:a805daa83dd0 315 int print(char *s, unsigned short nb1, double nb2);
YSI 1:a805daa83dd0 316 int print(char *s, double nb1, unsigned short nb2);
YSI 1:a805daa83dd0 317 int print(char *s, unsigned short nb1, unsigned short nb2, unsigned short nb3);
YSI 1:a805daa83dd0 318
YSI 1:a805daa83dd0 319 int print(char *s, unsigned short nb1, unsigned short nb2, int nb3);
YSI 1:a805daa83dd0 320 int print(char *s, unsigned short nb1, int nb2, unsigned short nb3);
YSI 1:a805daa83dd0 321 int print(char *s, unsigned short nb1, int nb2, int nb3);
YSI 1:a805daa83dd0 322 int print(char *s, int nb1, unsigned short nb2, unsigned short nb3);
YSI 1:a805daa83dd0 323 int print(char *s, int nb1, unsigned short nb2, int nb3);
YSI 1:a805daa83dd0 324 int print(char *s, int nb1, int nb2, unsigned short nb3);
YSI 1:a805daa83dd0 325
YSI 1:a805daa83dd0 326 int print(char *s, unsigned short nb1, unsigned short nb2, unsigned int nb3);
YSI 1:a805daa83dd0 327 int print(char *s, unsigned short nb1, unsigned int nb2, unsigned short nb3);
YSI 1:a805daa83dd0 328 int print(char *s, unsigned short nb1, unsigned int nb2, unsigned int nb3);
YSI 1:a805daa83dd0 329 int print(char *s, unsigned int nb1, unsigned short nb2, unsigned short nb3);
YSI 1:a805daa83dd0 330 int print(char *s, unsigned int nb1, unsigned short nb2, unsigned int nb3);
YSI 1:a805daa83dd0 331 int print(char *s, unsigned int nb1, unsigned int nb2, unsigned short nb3);
YSI 1:a805daa83dd0 332
YSI 1:a805daa83dd0 333 int print(char *s, unsigned short nb1, unsigned short nb2, long long nb3);
YSI 1:a805daa83dd0 334 int print(char *s, unsigned short nb1, long long nb2, unsigned short nb3);
YSI 1:a805daa83dd0 335 int print(char *s, unsigned short nb1, long long nb2, long long nb3);
YSI 1:a805daa83dd0 336 int print(char *s, long long nb1, unsigned short nb2, unsigned short nb3);
YSI 1:a805daa83dd0 337 int print(char *s, long long nb1, unsigned short nb2, long long nb3);
YSI 1:a805daa83dd0 338 int print(char *s, long long nb1, long long nb2, unsigned short nb3);
YSI 1:a805daa83dd0 339
YSI 1:a805daa83dd0 340 int print(char *s, unsigned short nb1, unsigned short nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 341 int print(char *s, unsigned short nb1, unsigned long long nb2, unsigned short nb3);
YSI 1:a805daa83dd0 342 int print(char *s, unsigned short nb1, unsigned long long nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 343 int print(char *s, unsigned long long nb1, unsigned short nb2, unsigned short nb3);
YSI 1:a805daa83dd0 344 int print(char *s, unsigned long long nb1, unsigned short nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 345 int print(char *s, unsigned long long nb1, unsigned long long nb2, unsigned short nb3);
YSI 1:a805daa83dd0 346
YSI 1:a805daa83dd0 347 int print(char *s, unsigned short nb1, unsigned short nb2, float nb3);
YSI 1:a805daa83dd0 348 int print(char *s, unsigned short nb1, float nb2, unsigned short nb3);
YSI 1:a805daa83dd0 349 int print(char *s, unsigned short nb1, float nb2, float nb3);
YSI 1:a805daa83dd0 350 int print(char *s, float nb1, unsigned short nb2, unsigned short nb3);
YSI 1:a805daa83dd0 351 int print(char *s, float nb1, unsigned short nb2, float nb3);
YSI 1:a805daa83dd0 352 int print(char *s, float nb1, float nb2, unsigned short nb3);
YSI 1:a805daa83dd0 353
YSI 1:a805daa83dd0 354 int print(char *s, unsigned short nb1, unsigned short nb2, double nb3);
YSI 1:a805daa83dd0 355 int print(char *s, unsigned short nb1, double nb2, unsigned short nb3);
YSI 1:a805daa83dd0 356 int print(char *s, unsigned short nb1, double nb2, double nb3);
YSI 1:a805daa83dd0 357 int print(char *s, double nb1, unsigned short nb2, unsigned short nb3);
YSI 1:a805daa83dd0 358 int print(char *s, double nb1, unsigned short nb2, double nb3);
YSI 1:a805daa83dd0 359 int print(char *s, double nb1, double nb2, unsigned short nb3);
YSI 1:a805daa83dd0 360
YSI 1:a805daa83dd0 361
YSI 1:a805daa83dd0 362
YSI 0:0549f4c4896c 363 int print(char *s, int nb);
YSI 0:0549f4c4896c 364 int print(char *s, int nb1, int nb2);
YSI 1:a805daa83dd0 365 int print(char *s, int nb1, unsigned int nb2);
YSI 1:a805daa83dd0 366 int print(char *s, unsigned int nb1, int nb2);
YSI 1:a805daa83dd0 367 int print(char *s, int nb1, long long nb2);
YSI 1:a805daa83dd0 368 int print(char *s, long long nb1, int nb2);
YSI 1:a805daa83dd0 369 int print(char *s, int nb1, unsigned long long nb2);
YSI 1:a805daa83dd0 370 int print(char *s, unsigned long long nb1, int nb2);
YSI 1:a805daa83dd0 371 int print(char *s, int nb1, float nb2);
YSI 1:a805daa83dd0 372 int print(char *s, float nb1, int nb2);
YSI 0:0549f4c4896c 373 int print(char *s, int nb1, double nb2);
YSI 0:0549f4c4896c 374 int print(char *s, double nb1, int nb2);
YSI 1:a805daa83dd0 375 int print(char *s, int nb1, int nb2, int nb3);
YSI 1:a805daa83dd0 376
YSI 1:a805daa83dd0 377 int print(char *s, int nb1, int nb2, unsigned int nb3);
YSI 1:a805daa83dd0 378 int print(char *s, int nb1, unsigned int nb2, int nb3);
YSI 1:a805daa83dd0 379 int print(char *s, int nb1, unsigned int nb2, unsigned int nb3);
YSI 1:a805daa83dd0 380 int print(char *s, unsigned int nb1, int nb2, int nb3);
YSI 1:a805daa83dd0 381 int print(char *s, unsigned int nb1, int nb2, unsigned int nb3);
YSI 1:a805daa83dd0 382 int print(char *s, unsigned int nb1, unsigned int nb2, int nb3);
YSI 1:a805daa83dd0 383
YSI 1:a805daa83dd0 384 int print(char *s, int nb1, int nb2, long long nb3);
YSI 1:a805daa83dd0 385 int print(char *s, int nb1, long long nb2, int nb3);
YSI 1:a805daa83dd0 386 int print(char *s, int nb1, long long nb2, long long nb3);
YSI 1:a805daa83dd0 387 int print(char *s, long long nb1, int nb2, int nb3);
YSI 1:a805daa83dd0 388 int print(char *s, long long nb1, int nb2, long long nb3);
YSI 1:a805daa83dd0 389 int print(char *s, long long nb1, long long nb2, int nb3);
YSI 1:a805daa83dd0 390
YSI 1:a805daa83dd0 391 int print(char *s, int nb1, int nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 392 int print(char *s, int nb1, unsigned long long nb2, int nb3);
YSI 1:a805daa83dd0 393 int print(char *s, int nb1, unsigned long long nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 394 int print(char *s, unsigned long long nb1, int nb2, int nb3);
YSI 1:a805daa83dd0 395 int print(char *s, unsigned long long nb1, int nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 396 int print(char *s, unsigned long long nb1, unsigned long long nb2, int nb3);
YSI 1:a805daa83dd0 397
YSI 1:a805daa83dd0 398 int print(char *s, int nb1, int nb2, float nb3);
YSI 1:a805daa83dd0 399 int print(char *s, int nb1, float nb2, int nb3);
YSI 1:a805daa83dd0 400 int print(char *s, int nb1, float nb2, float nb3);
YSI 1:a805daa83dd0 401 int print(char *s, float nb1, int nb2, int nb3);
YSI 1:a805daa83dd0 402 int print(char *s, float nb1, int nb2, float nb3);
YSI 1:a805daa83dd0 403 int print(char *s, float nb1, float nb2, int nb3);
YSI 1:a805daa83dd0 404
YSI 1:a805daa83dd0 405 int print(char *s, int nb1, int nb2, double nb3);
YSI 1:a805daa83dd0 406 int print(char *s, int nb1, double nb2, int nb3);
YSI 1:a805daa83dd0 407 int print(char *s, int nb1, double nb2, double nb3);
YSI 1:a805daa83dd0 408 int print(char *s, double nb1, int nb2, int nb3);
YSI 1:a805daa83dd0 409 int print(char *s, double nb1, int nb2, double nb3);
YSI 1:a805daa83dd0 410 int print(char *s, double nb1, double nb2, int nb3);
YSI 1:a805daa83dd0 411
YSI 1:a805daa83dd0 412
YSI 1:a805daa83dd0 413 int print(char *s, unsigned int nb);
YSI 1:a805daa83dd0 414 int print(char *s, unsigned int nb1, unsigned int nb2);
YSI 1:a805daa83dd0 415 int print(char *s, unsigned int nb1, long long nb2);
YSI 1:a805daa83dd0 416 int print(char *s, long long nb1, unsigned int nb2);
YSI 1:a805daa83dd0 417 int print(char *s, unsigned int nb1, unsigned long long nb2);
YSI 1:a805daa83dd0 418 int print(char *s, unsigned long long nb1, unsigned int nb2);
YSI 1:a805daa83dd0 419 int print(char *s, unsigned int nb1, float nb2);
YSI 1:a805daa83dd0 420 int print(char *s, float nb1, unsigned int nb2);
YSI 1:a805daa83dd0 421 int print(char *s, unsigned int nb1, double nb2);
YSI 1:a805daa83dd0 422 int print(char *s, double nb1, unsigned int nb2);
YSI 1:a805daa83dd0 423 int print(char *s, unsigned int nb1, unsigned int nb2, unsigned int nb3);
YSI 1:a805daa83dd0 424
YSI 1:a805daa83dd0 425 int print(char *s, unsigned int nb1, unsigned int nb2, long long nb3);
YSI 1:a805daa83dd0 426 int print(char *s, unsigned int nb1, long long nb2, unsigned int nb3);
YSI 1:a805daa83dd0 427 int print(char *s, unsigned int nb1, long long nb2, long long nb3);
YSI 1:a805daa83dd0 428 int print(char *s, long long nb1, unsigned int nb2, unsigned int nb3);
YSI 1:a805daa83dd0 429 int print(char *s, long long nb1, unsigned int nb2, long long nb3);
YSI 1:a805daa83dd0 430 int print(char *s, long long nb1, long long nb2, unsigned int nb3);
YSI 1:a805daa83dd0 431
YSI 1:a805daa83dd0 432 int print(char *s, unsigned int nb1, unsigned int nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 433 int print(char *s, unsigned int nb1, unsigned long long nb2, unsigned int nb3);
YSI 1:a805daa83dd0 434 int print(char *s, unsigned int nb1, unsigned long long nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 435 int print(char *s, unsigned long long nb1, unsigned int nb2, unsigned int nb3);
YSI 1:a805daa83dd0 436 int print(char *s, unsigned long long nb1, unsigned int nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 437 int print(char *s, unsigned long long nb1, unsigned long long nb2, unsigned int nb3);
YSI 1:a805daa83dd0 438
YSI 1:a805daa83dd0 439 int print(char *s, unsigned int nb1, unsigned int nb2, float nb3);
YSI 1:a805daa83dd0 440 int print(char *s, unsigned int nb1, float nb2, unsigned int nb3);
YSI 1:a805daa83dd0 441 int print(char *s, unsigned int nb1, float nb2, float nb3);
YSI 1:a805daa83dd0 442 int print(char *s, float nb1, unsigned int nb2, unsigned int nb3);
YSI 1:a805daa83dd0 443 int print(char *s, float nb1, unsigned int nb2, float nb3);
YSI 1:a805daa83dd0 444 int print(char *s, float nb1, float nb2, unsigned int nb3);
YSI 1:a805daa83dd0 445
YSI 1:a805daa83dd0 446 int print(char *s, unsigned int nb1, unsigned int nb2, double nb3);
YSI 1:a805daa83dd0 447 int print(char *s, unsigned int nb1, double nb2, unsigned int nb3);
YSI 1:a805daa83dd0 448 int print(char *s, unsigned int nb1, double nb2, double nb3);
YSI 1:a805daa83dd0 449 int print(char *s, double nb1, unsigned int nb2, unsigned int nb3);
YSI 1:a805daa83dd0 450 int print(char *s, double nb1, unsigned int nb2, double nb3);
YSI 1:a805daa83dd0 451 int print(char *s, double nb1, double nb2, unsigned int nb3);
YSI 1:a805daa83dd0 452
YSI 1:a805daa83dd0 453
YSI 1:a805daa83dd0 454 int print(char *s, long long nb);
YSI 1:a805daa83dd0 455 int print(char *s, long long nb1, long long nb2);
YSI 1:a805daa83dd0 456 int print(char *s, long long nb1, unsigned long long nb2);
YSI 1:a805daa83dd0 457 int print(char *s, unsigned long long nb1, long long nb2);
YSI 1:a805daa83dd0 458 int print(char *s, long long nb1, float nb2);
YSI 1:a805daa83dd0 459 int print(char *s, float nb1, long long nb2);
YSI 1:a805daa83dd0 460 int print(char *s, long long nb1, double nb2);
YSI 1:a805daa83dd0 461 int print(char *s, double nb1, long long nb2);
YSI 1:a805daa83dd0 462 int print(char *s, long long nb1, long long nb2, long long nb3);
YSI 1:a805daa83dd0 463
YSI 1:a805daa83dd0 464 int print(char *s, long long nb1, long long nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 465 int print(char *s, long long nb1, unsigned long long nb2, long long nb3);
YSI 1:a805daa83dd0 466 int print(char *s, long long nb1, unsigned long long nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 467 int print(char *s, unsigned long long nb1, long long nb2, long long nb3);
YSI 1:a805daa83dd0 468 int print(char *s, unsigned long long nb1, long long nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 469 int print(char *s, unsigned long long nb1, unsigned long long nb2, long long nb3);
YSI 1:a805daa83dd0 470
YSI 1:a805daa83dd0 471 int print(char *s, long long nb1, long long nb2, float nb3);
YSI 1:a805daa83dd0 472 int print(char *s, long long nb1, float nb2, long long nb3);
YSI 1:a805daa83dd0 473 int print(char *s, long long nb1, float nb2, float nb3);
YSI 1:a805daa83dd0 474 int print(char *s, float nb1, long long nb2, long long nb3);
YSI 1:a805daa83dd0 475 int print(char *s, float nb1, long long nb2, float nb3);
YSI 1:a805daa83dd0 476 int print(char *s, float nb1, float nb2, long long nb3);
YSI 1:a805daa83dd0 477
YSI 1:a805daa83dd0 478 int print(char *s, long long nb1, long long nb2, double nb3);
YSI 1:a805daa83dd0 479 int print(char *s, long long nb1, double nb2, long long nb3);
YSI 1:a805daa83dd0 480 int print(char *s, long long nb1, double nb2, double nb3);
YSI 1:a805daa83dd0 481 int print(char *s, double nb1, long long nb2, long long nb3);
YSI 1:a805daa83dd0 482 int print(char *s, double nb1, long long nb2, double nb3);
YSI 1:a805daa83dd0 483 int print(char *s, double nb1, double nb2, long long nb3);
YSI 1:a805daa83dd0 484
YSI 1:a805daa83dd0 485
YSI 1:a805daa83dd0 486 int print(char *s, unsigned long long nb);
YSI 1:a805daa83dd0 487 int print(char *s, unsigned long long nb1, unsigned long long nb2);
YSI 1:a805daa83dd0 488 int print(char *s, unsigned long long nb1, float nb2);
YSI 1:a805daa83dd0 489 int print(char *s, float nb1, unsigned long long nb2);
YSI 1:a805daa83dd0 490 int print(char *s, unsigned long long nb1, double nb2);
YSI 1:a805daa83dd0 491 int print(char *s, double nb1, unsigned long long nb2);
YSI 1:a805daa83dd0 492 int print(char *s, unsigned long long nb1, unsigned long long nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 493
YSI 1:a805daa83dd0 494 int print(char *s, unsigned long long nb1, unsigned long long nb2, float nb3);
YSI 1:a805daa83dd0 495 int print(char *s, unsigned long long nb1, float nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 496 int print(char *s, unsigned long long nb1, float nb2, float nb3);
YSI 1:a805daa83dd0 497 int print(char *s, float nb1, unsigned long long nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 498 int print(char *s, float nb1, unsigned long long nb2, float nb3);
YSI 1:a805daa83dd0 499 int print(char *s, float nb1, float nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 500
YSI 1:a805daa83dd0 501 int print(char *s, unsigned long long nb1, unsigned long long nb2, double nb3);
YSI 1:a805daa83dd0 502 int print(char *s, unsigned long long nb1, double nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 503 int print(char *s, unsigned long long nb1, double nb2, double nb3);
YSI 1:a805daa83dd0 504 int print(char *s, double nb1, unsigned long long nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 505 int print(char *s, double nb1, unsigned long long nb2, double nb3);
YSI 1:a805daa83dd0 506 int print(char *s, double nb1, double nb2, unsigned long long nb3);
YSI 1:a805daa83dd0 507
YSI 1:a805daa83dd0 508
YSI 1:a805daa83dd0 509 int print(char *s, float nb);
YSI 1:a805daa83dd0 510 int print(char *s, float nb1, float nb2);
YSI 1:a805daa83dd0 511 int print(char *s, float nb1, double nb2);
YSI 1:a805daa83dd0 512 int print(char *s, double nb1, float nb2);
YSI 1:a805daa83dd0 513 int print(char *s, float nb1, float nb2, float nb3);
YSI 1:a805daa83dd0 514
YSI 1:a805daa83dd0 515 int print(char *s, float nb1, float nb2, double nb3);
YSI 1:a805daa83dd0 516 int print(char *s, float nb1, double nb2, float nb3);
YSI 1:a805daa83dd0 517 int print(char *s, float nb1, double nb2, double nb3);
YSI 1:a805daa83dd0 518 int print(char *s, double nb1, float nb2, float nb3);
YSI 1:a805daa83dd0 519 int print(char *s, double nb1, float nb2, double nb3);
YSI 1:a805daa83dd0 520 int print(char *s, double nb1, double nb2, float nb3);
YSI 1:a805daa83dd0 521
YSI 1:a805daa83dd0 522
YSI 1:a805daa83dd0 523 int print(char *s, double nb);
YSI 0:0549f4c4896c 524 int print(char *s, double nb1, double nb2);
YSI 4:38d0fe9c8eb6 525 int print(char *s, double nb1, double nb2, double nb3);*/
YSI 1:a805daa83dd0 526
YSI 1:a805daa83dd0 527
YSI 1:a805daa83dd0 528 private:
YSI 0:0549f4c4896c 529 DigitalInOut m_pin_rst;
YSI 0:0549f4c4896c 530 int m_address;
YSI 0:0549f4c4896c 531
YSI 0:0549f4c4896c 532 int init(void);
YSI 0:0549f4c4896c 533 void reset(void);
YSI 1:a805daa83dd0 534 int putnc(char *s, int n);
YSI 0:0549f4c4896c 535 int putnb2(int nb);
YSI 1:a805daa83dd0 536
YSI 1:a805daa83dd0 537 void X_move_position(int n);
YSI 4:38d0fe9c8eb6 538 int X40_position_cursor;
YSI 4:38d0fe9c8eb6 539 int X80_position_cursor;
YSI 4:38d0fe9c8eb6 540 int Y2_position_cursor;
YSI 4:38d0fe9c8eb6 541 char LCD_Data_Register[80];
YSI 0:0549f4c4896c 542 };
YSI 0:0549f4c4896c 543
YSI 0:0549f4c4896c 544 #endif