


Line ( Xposition1, Yposition1, Xposition2, Yposition2, [Optional In GLCDDrawString( Xposition, Yposition, Stringvariable )ĭraw a box on the GLCD to a specific sizeīox ( Xposition1, Yposition1, Xposition2, Yposition2, [Optional Inĭraw a box on the GLCD to a specific size that is filled with theįilledBox (Xposition1, Yposition1, Xposition2, Yposition2, [Optional Inĭraw a line on the GLCD to a specific length that is filled with the Print characters on GLCD using GCB font set GLCDDrawChar( Xposition, Yposition, CharCode ) Print character on GLCD using GCB font set GLCDPrint( Xposition, Yposition, Stringvariable )

Print string of characters on GLCD using GCB font set The Great Cow BASIC constants for control display characteristics are shown in the table below. The LCD is connected to ground if not used. No need for the LCD_RW constant to be set. Is done, there is no need for the R/W to be connected to the chip, and The R/W pin can be disabled by setting the GLCD_NO_RW constant. Can be reduced for slower chipĭisables read/write inspection of the device during read/write Required, set to 20 us for 32Mhz support. Set the time delay between data transmissions. Specifies the output pin that is connected to Enable on the GLCD. Specifies the output pin that is connected to Reset on the GLCD. Must be defined unless R/W is disabled), see GLCD_NO_RW Specifies the output pin that is connected to Read/Write on the GLCD. Specifies the output pin that is connected to Register Select on the Specifies the output port that is connected between the microcontroller

The Great Cow BASIC constants for the interface to the controller are shown in the table below. #define GLCD_DATA_PORT PORTD 'example port setting #define GLCD_RESET PORTA.3 'example port setting #define GLCD_RW PORTA.2 'example port setting #define GLCD_RS PORTa.0 'example port setting #define GLCD_Enable PORTA.1 'example port setting
#St7920 code example driver#
To use the ST7920 driver simply include the following in your user code.
#St7920 code example software#
ST7920 has built-in CGRAMĪnd provide 4 sets software programmable 16x16 fonts. Mix-mode display withīoth character and graphic data is possible. Graphic display area for graphic display (GDRAM). The ST7920 includes character ROM with 8192 16x16 dots Chinese fonts andġ26 16x8 dots half-width alphanumerical fonts. With a minimum system configuration, a Chinese character display system
#St7920 code example drivers#
For LCD only operations (text characters only) you can useĪll functions, including display RAM, Character Generation ROM, LCDĭisplay drivers and control circuits are all in a one-chip solution. Great Cow BASIC is currently supportsĨ-bit only. ST7920 LCD controller/driver IC can display alphabets, numbers, Chineseįonts and self-defined characters. The ST7920 GLCD is graphica and character mixed mode display. Pins are connected between the microcontroller and the GLCD to control the The only connectivity option the 8-bit mode where 8 The Great Cow BASIC constants for control of the connectivity are shown This section covers GLCD devices that use the ST7920 graphics controller. ST7920GLCDClearGraphics ST7920GLCDDisableGraphics ST7920GLCDEnableGraphics ST7920GraphicTest ST7920LineHs ST7920Locate ST7920Tile ST7920cTile ST7920gLocate ST7920gTile ST7920lineh ST7920linev ST7920GLCDReadByte ST7920WriteByte ST7920WriteCommand ST7920WriteData ST7920gReaddata
