Abl-electronic PIC Microcontrollers PIC16 Instrukcja Użytkownika Strona 220

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 312
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 219
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
212
MikroElektronika:
Development
tools
-
Books
-
Compilers
page
Prototype
void Glcd_Line(int x1, int y1, int x2, int y2, char color);
Description Draws a line on the GLCD from (x1, y1) to (x2, y2). Parameter color determines
the dot state: 0 draws an empty line (clear dots), 1 draws a full line (put dots), and 2
draws a “smart” line (invert each dot).
Requires GLCD needs to be initialized. See Glcd_Init.
Example
Glcd_Line(0, 63, 50, 0, 2);
Glcd_Line
Prototype
void Glcd_V_Line(unsigned short y1, unsigned short y2, unsigned
short x, char color);
Description Similar to GLcd_Line, draws a vertical line on the GLCD from (x, y1) to
(x, y2).
Requires GLCD needs to be initialized. See Glcd_Init.
Example
Glcd_V_Line(0, 63, 0, 1);
Glcd_V_Line
Prototype
void Glcd_H_Line(unsigned short x1, unsigned short x2, unsigned
short y, char color);
Description Similar to GLcd_Line, draws a horizontal line on the GLCD from (x1, y) to
(x2, y).
Requires GLCD needs to be initialized. See Glcd_Init.
Example
Glcd_H_Line(0, 127, 0, 1);
Glcd_H_Line
Przeglądanie stron 219
1 2 ... 215 216 217 218 219 220 221 222 223 224 225 ... 311 312

Komentarze do niniejszej Instrukcji

Brak uwag