资源简介
很好用的zedboard OLED IP
代码片段和文件信息
/* ZedboardOLED.c
* ###############################################################################
*
* Simple driver for the 128x32 OLED on the Zedboard
*
*
* The presence of the ZedboardOLED_v1_0 IP code in the PL-side of the Zynq chip
* is required to make this driver work.
*
*
* Texas A&M Qatar invests efforts and resources providing this open source code
* All text above and the splash screen below must be included in any redistribution
* this driver is subjected to BSD license check license.txt for more information
* Written by Ali Aljaani/ Texas A&M Qatar University.
*
* ###############################################################################
* v1.0 -- 08/15/2014
* Eng. Ali Aljaani
* Company: TAMUQ University
* ############################################################################### */
#include “xparameters.h“
#include “xil_io.h“
#include
#define DELAY 10000
/* Define the base memory address of the ZedboardOLED IP core */
#define OLED_base XPAR_ZEDBOARDOLED_0_S00_AXI_baseADDR
/* driver functions for ZedboardOLED IP core */
/*****************************************************************************/
/**
*
* prints a character on the OLED at the page and the position specified by the second
* and third argumentsexample print_char(‘A‘00);
*
* @param char char_seq the character to be printed.
*
* @param unsigned int page(0-3) the OLED is divided into 4 pages numbers 0 is the upper
* 3 is the lower.
* @param unsigned int position(0-15) each page can hold 16 characters
* 0 is the leftmost 15 is the rightmost
*
* @return int 1 on success 0 on failure.
******************************************************************************/
int print_char( char char_seq unsigned int page unsigned int position);
/*****************************************************************************/
/**
*
* prints a string of characters on the OLED at the page specified by the second
* argument maximum string per page =16example: print_char(“Texas A&M Qatar0);
*
* @param char *start the string message to be printed maximum 16 letters.
*
* @param unsigned int page(0-3) the OLED is divided into 4 pages numbers 0 is the upper
* 3 is the lower.
*
* @return int 1 on success 0 on failure.
*
******************************************************************************/
int print_message(char *start unsigned int page);
/*****************************************************************************/
/**
*
* clears the screen example: clean();
*
*
* @param none.
*
* @return none.
******************************************************************************/
void clear(void);
static int int_seq [64];
void clear(void){
int i=0;
for (i=0;i<=63 ;i++) {
int_seq[i] = 0x00000000;
}
for (i=0;i<=60; i=i+4) {
Xil_Out32(OLED_base+(i)int_seq[i]);
}
for (i=0;i<=DELAY ;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-01-02 14:27 OLED_1.0\
目录 0 2016-01-02 14:13 OLED_1.0\bd\
文件 7835 2014-08-18 17:26 OLED_1.0\bd\bd.tcl
文件 38240 2014-08-20 17:38 OLED_1.0\component.xm
目录 0 2016-01-02 14:13 OLED_1.0\drivers\
目录 0 2016-01-02 14:13 OLED_1.0\drivers\ZedboardOLED_v1_0\
目录 0 2016-01-02 14:13 OLED_1.0\drivers\ZedboardOLED_v1_0\data\
文件 201 2014-08-18 17:26 OLED_1.0\drivers\ZedboardOLED_v1_0\data\ZedboardOLED.mdd
文件 174 2014-08-18 17:26 OLED_1.0\drivers\ZedboardOLED_v1_0\data\ZedboardOLED.tcl
目录 0 2016-01-02 14:13 OLED_1.0\drivers\ZedboardOLED_v1_0\src\
文件 481 2014-08-18 17:26 OLED_1.0\drivers\ZedboardOLED_v1_0\src\Makefile
文件 4635 2014-08-20 14:07 OLED_1.0\drivers\ZedboardOLED_v1_0\src\ZedboardOLED.c
文件 1771 2014-08-20 14:07 OLED_1.0\drivers\ZedboardOLED_v1_0\src\ZedboardOLED.h
目录 0 2016-01-02 14:13 OLED_1.0\hdl\
文件 3054 2014-08-20 14:18 OLED_1.0\hdl\ZedboardOLED_v1_0.v
文件 44014 2014-08-20 16:31 OLED_1.0\hdl\ZedboardOLED_v1_0_S00_AXI.v
目录 0 2016-01-02 14:13 OLED_1.0\src\
目录 0 2016-01-02 14:13 OLED_1.0\src\charLib\
文件 3518 2014-08-19 16:21 OLED_1.0\src\charLib\charLib.coe
文件 20351 2014-08-19 16:22 OLED_1.0\src\charLib\charLib.xci
文件 3079 2014-08-19 14:01 OLED_1.0\src\Delay.v
文件 4249 2014-08-19 14:01 OLED_1.0\src\SpiCtrl.v
目录 0 2016-01-02 14:13 OLED_1.0\xgui\
文件 2893 2014-08-20 14:45 OLED_1.0\xgui\ZedboardOLED_v1_0.tcl
相关资源
- OLED取模软件OLED取模软件
- oled的代码
- STM32 OLED打点划线画圆 OLED电子罗盘 程
- 0.96英寸oled屏iic通讯中文说明.doc
- Xilinx Zynq SoC与嵌入式Linux设计实战指南
- 51单片机 菜单程序OLED屏
- Vivado2018.1及license,亲测可用
- 128*32OLED点阵屏驱动已移植GUI
- Zedboard ov7725板端Linux下tcp视频发送
- Xilinx_Zynq-7000 封装库
- Keil5下的STM32F103Cx例程超值,含PWM输出
- OLED万年历显示程序
- 基于STM32的空气颗粒PM2.5与温湿度检测
- OLED 091 12832 I2C STM32 驱动
- OLED SH1106驱动
- VS2017连接数据库
- ZYNQ7000原理图
- oled0.96屏 电量图标 BMP
- Image2LCD OLED图片取模软件
- zedboard移植opencv+qt的人脸检测
- Linux下QT tcp接收Zedboard发送的RGB888视频
- ssd1305驱动,绝对能用
- STM32驱动max30102和MLX90614程序
- ZYNQ7021 串口UART0
- zedboard的usb视频显示
- CC2530+OLED电压信号模拟信号显示串口传
- STM32 OLED 菜单显示汉字
- 中景园电子0.96OLED显示屏_C51系列_SPI
- STM32_OLED_三级菜单框架.rar
- 基于stm32、0.96寸OLED实现的贪吃蛇小游
评论
共有 条评论