Abl-electronic PIC Microcontrollers PIC16 Manuel d'utilisateur Page 212

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 312
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 211
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
204
MikroElektronika:
Development
tools
-
Books
-
Compilers
page
Prototype
void Lcd8_Init(char *ctrlport, char *dataport);
Description Initializes LCD at Control port (ctrlport) and Data port (dataport) with default pin set-
tings (see the connection scheme at the end of the chapter):
E -> ctrlport.3, RS -> ctrlport.2, R/W -> ctrlport.0, D7 -> dataport.7, D6 -> dataport.6,
D5 -> dataport.5, D4 -> dataport.4, D3 -> dataport.3, D2 -> dataport.2, D1 -> dataport.1,
D0 -> dataport.0
Example
Lcd8_Init(PORTB, PORTC);
Lcd8_Init
Prototype
void Lcd8_Out(char row, char col, char *text);
Description Prints text on LCD at specified row and column (parameter row and col). Both string
variables and literals can be passed as text.
Requires Ports with LCD must be initialized. See Lcd8_Config or Lcd8_Init.
Example
Lcd8_Out(1, 3, "Hello!");
// Print "Hello!" at line 1, char 3
Lcd8_Out
Prototype
void Lcd8_Out_Cp(char *text);
Description Prints text on LCD at current cursor position. Both string variables and literals can be
passed as
text.
Requires Ports with LCD must be initialized. See Lcd8_Config or Lcd8_Init.
Example
Lcd8_Out_Cp("Here!");
// Print "Here!" at current cursor position
Lcd8_Out_Cp
Vue de la page 211
1 2 ... 207 208 209 210 211 212 213 214 215 216 217 ... 311 312

Commentaires sur ces manuels

Pas de commentaire