MikroElektronika PIC Microcontrollers PIC16 Arkusz Danych Strona 177

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 176
Programming PIC Microcontrollers in BASIC - mikroElektronika
dim Text as char[20]
main:
TRISB = 0 ' PORTB is output
TRISD = 0 ' PORTD is output
' Initialize LCD at PORTB and PORTD with custom pin settings
LCD8_Config(PORTB,PORTD,2,3,0,7,6,5,4,3,2,1,0)
LCD8_Cmd(LCD_CURSOR_OFF) ' Turn off cursor
Text = "mikroElektronika"
LCD8_Out(1, 1, Text) ' Print text at LCD
end.
7.4 Graphical LCD (PIC18 only)
Most commonly used Graphical LCD (GLCD) has screen resolution of 128x64 pixels. This allows creating more
elaborate visual messages than usual LCD can provide, involving drawings and bitmaps.
The following figure shows GLCD HW connection by default initialization (using GLCD_LCD_Init routine); if you
need different pin settings, refer to GLCD_LCD_Config.
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/07.htm (11 sur 16)05/11/2004 02:27:46
Przeglądanie stron 176
1 2 ... 172 173 174 175 176 177 178 179 180 181 182 ... 193 194

Komentarze do niniejszej Instrukcji

Brak uwag