chipKIT Basic I/O Shield Reference Manual
Display Memory Update
This function copies the contents of a 512 byte buffer from PIC32 memory to the display. The display
memory is organized as four pages of 128 bytes each. Each memory page corresponds to an eight
pixel high stripe across the display. Each byte in the memory page corresponds to an eight pixel high
column on the display. The least significant bit in a display byte is the top most pixel, and the most
significant bit the bottom most pixel. The first byte in the page corresponds to the left most pixels on
the display and the last byte the right most pixels.
This function assumes that the display buffer to be copied is the global variable rgbOledBmp
/* ------------------------------------------------------------ */
/*** OledUpdate
**
** Parameters:
** none
**
** Return Value:
** none
**
** Errors:
** none
**
** Description:
** Update the OLED display with the contents of the memory buffer
*/
void
OledUpdate()
{
int
int
BYTE *
ipag;
icol;
pb;
pb = rgbOledBmp;
for (ipag = 0; ipag < cpagOledMax; ipag++) {
PORTClearBits(prtDataCmd, bitDataCmd);
/* Set the page address
*/
Spi2PutByte(0x22);
Spi2PutByte(ipag);
//Set page command
//page number
/* Start at the left column
*/
Spi2PutByte(0x00); //set low nybble of column
Spi2PutByte(0x10); //set high nybble of column
PORTSetBits(prtDataCmd, bitDataCmd);
/* Copy this memory page of display data.
*/
OledPutBuffer(ccolOledMax, pb);
pb += ccolOledMax;
}
}
www.digilentinc.com
page 13 of 15
Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.
相关PDF资料
TDGL007 BOARD MOTOR CTRL DSPIC337128MC
TEACL-PIC-DB ADAPTER DEBUG TEACLIPPER/PICICD2
TEACL-STAMP-DB ADAPTER DEBUG TEACLIPPER/STAMP
TEH-9P CONN DB9 PLUG IDC PLASTIC
TEH-9S CONN DB9 SOCKET IDC PLASTIC
TEMPCOMPRTC-RD KIT REF DES TEMP COMPENS RTC
THS6182DWEVM EVAL MODULE FOR THS6182DW
TISP1082F3DR SURGE SUPP -66V UNIDIR 8-SOIC
相关代理商/技术参数
TDGL006 功能描述:界面开发工具 chipKIT Network Shield RoHS:否 制造商:Bourns 产品:Evaluation Boards 类型:RS-485 工具用于评估:ADM3485E 接口类型:RS-485 工作电源电压:3.3 V
TDGL007 功能描述:开发板和工具包 - PIC / DSPIC DIGILENT CEREBOT MC7 MOTOR CONTROL BRD RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
TDGL008 功能描述:开发板和工具包 - PIC / DSPIC Digilent Cerebot MX3ck Dev Brd RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
TDGL009 功能描述:开发板和工具包 - PIC / DSPIC Digilent Cerebot MX4cK Dev Brd RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
TDGL010 功能描述:开发板和工具包 - 其他处理器 Digilent Cerebot MX7cK Dev Brd RoHS:否 制造商:Freescale Semiconductor 产品:Development Systems 工具用于评估:P3041 核心:e500mc 接口类型:I2C, SPI, USB 工作电源电压:
TDGL011 功能描述:MODULE DIGILENT PMOD WIFI RoHS:是 类别:RF/IF 和 RFID >> RF 评估和开发套件,板 系列:Digilent 标准包装:1 系列:- 类型:GPS 接收器 频率:1575MHz 适用于相关产品:- 已供物品:模块 其它名称:SER3796
TDGL012 功能描述:MODULE DIGILENT PMODRF2 RoHS:是 类别:RF/IF 和 RFID >> RF 评估和开发套件,板 系列:Digilent 标准包装:1 系列:- 类型:GPS 接收器 频率:1575MHz 适用于相关产品:- 已供物品:模块 其它名称:SER3796
TDGL013 功能描述:MODULE DIGILENT PMODRTCC RoHS:是 类别:编程器,开发系统 >> 评估演示板和套件 系列:* 标准包装:1 系列:- 主要目的:数字电位器 嵌入式:- 已用 IC / 零件:AD5258 主要属性:- 次要属性:- 已供物品:板 相关产品:AD5258BRMZ1-ND - IC POT DGTL I2C1K 64P 10MSOPAD5258BRMZ10-ND - IC POT DGTL I2C 10K 64P 10MSOPAD5258BRMZ100-ND - IC POT DGTL I2C 100K 64P 10MSOPAD5258BRMZ50-ND - IC POT DGTL I2C 50K 64P 10MSOPAD5258BRMZ1-R7-ND - IC POT DGTL I2C 1K 64P 10MSOPAD5258BRMZ10-R7-ND - IC POT DGTL I2C 10K 64P 10MSOPAD5258BRMZ50-R7-ND - IC POT DGTL I2C 50K 64P 10MSOPAD5258BRMZ100-R7-ND - IC POT DGTL I2C 100K 64P 10MSOP