LCD Controller Specification
B.8
EXAMPLES
EXAMPLE B-1:
WRITE A WORD
This example clears the display and writes “Hi” starting at row 2, column 10. Write the
following bytes to the SPI port:
0x82
0xE7, ‘H’, 10, 2
0xA8, ‘i’
EXAMPLE B-2:
// Clear screen
// Write ‘H’ to column 10, row 2, then increment the column
// Write ‘i’ at column 11, row 2 then increment the column
DRAW A STRAIGHT LINE
This example draws a straight line from X location (1,1) to Y location (119,3). Write the
following bytes to SPI port:
0xD7, 1, 1
0xDA, 119, 31
EXAMPLE B-3:
// Set Pixel cursor to X=1, Y=1
// Draw line to X=119, Y=31
DRAW AN ICON
This example draws an icon 8 pixels tall and 3 pixels wide that looks like a ‘T’ on
row = 1, column = 19. Write the following bytes to SPI port:
0xDB,
0xBC,
0xBC,
0xBC,
19, 1
0x01
0xFF
0x01
//
//
//
//
Set Column cursor to X=19, Row = 1
Write pixel at top of display at column 19, increment column
Write vertical line at column 20, increment column
Write pixel at top of display at column 21, increment column
? 2006 Microchip Technology Inc.
DS70099D-page 83
相关PDF资料
DM330012 KIT USB STARTER FOR DSPIC33E
DM330013 MICROSTICK DSPIC33F/PIC24H BOARD
DNET1 SURGE SUPPRESSOR ETHERNET RJ45
DR-8094 RACK DOUBLE 84"X20.25"X36" BLK
DR-IAC5E INPUT MODULE AC 5VDC
DRIDC24A INPUT MODULE DC 34MA 24VDC
DRODC24 OUTPUT MODULE DC 13MA 24VDC
DRR-40A MODULE REDUNDANCY 40A DIN RAIL
相关代理商/技术参数
DM300027 功能描述:开发板和工具包 - PIC / DSPIC 16-bit Starter Demo Board RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM-3-000-K 制造商:PacTec 功能描述:Case, Plastic; ABS; Black; 11.46 in.; 3.38 in.; 10.4 in.; UL 94-HB Rated 制造商:PacTec 功能描述:ENCLOSURE, DESKTOP, PLASTIC, BLACK; Enclosure Type:Desktop; Enclosure Material:Plastic; Body Color:Black; External Height - Imperial:3.38"; External Height - Metric:86mm; External Width - Imperial:10.4"; External Width - Metric:264mm;RoHS Compliant: Yes
DM-300-C 制造商:Greenlee Textron Inc 功能描述:DMM 1000V RMS
DM-301 制造商:Labfacility Limited 功能描述:SENSOR PT100 THIN FILM 2X2.3MM CL B 制造商:LABFACILITY 功能描述:SENSOR, PT100, THIN FILM, 2X2.3MM, CL B 制造商:LABFACILITY 功能描述:TEMPERATURE RTD SENSOR, -70C to +500C, 100 OHM; Sensing Temperature Min:-70C; Sensing Temperature Max:+500C; Resistance:100ohm; Sensor Terminals:Through Hole; Temperature Sensing Range:-70C to +500C ;RoHS Compliant: Yes
DM30103J 制造商:ELMCO 功能描述:
DM30113G 制造商:n/a 功能描述:DM30X311 S7C8B
DM30-113G 制造商:n/a 功能描述:DM30X311 S7C8B
DM30133J 制造商:n/a 功能描述:DM30X313 S7C8B