资源简介
基于STM32的SSD1305驱动程序,使用硬件SPI,DMA方式,高效的刷屏方式,不占用CPU,亲测可用

代码片段和文件信息
/*
当前为SPI接口模式,当然经过修改也可以使用IO模拟
*/
#include “stm32f10x.h“
#include “SSD1305_font.h“
#include “SSD1305.h“
//#include “my_os.h“
void Delay(vu32 nCount) {
for(; nCount != 0; nCount--);
}
void SSD1305_gpio_config_init(void);
void SSD1305_inter_reg_init(void);
void SSD1305_write_command(unsigned char data);
void SSD1305_write_data(unsigned char data);
void SSD1305_init(void);
void set_pixel_index(unsigned int column unsigned int row unsigned int index);
unsigned int get_pixel_index(unsigned int column unsigned int row);
void SSD1305_square(unsigned int x0 unsigned int y0 unsigned int with unsigned int colorunsigned char fill);
void SSD1305_rectangle(unsigned int x0 unsigned int y0 unsigned int x1 unsigned int y1unsigned int indexunsigned char fill);
void SSD1305_circle(unsigned int cxunsigned int cyunsigned int runsigned int indexunsigned char fill);
void SSD1305_line(unsigned int x0 unsigned int y0 unsigned int x1 unsigned int y1unsigned int index);
void SSD1305_draw_r_line (int x1 int x2 int y);
void SSD1305_draw_h_line (int y1 int y2 int x);
uint8_t SSD1305_buf[SSD1305_Y][SSD1305_X] = {
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 39515 2014-09-23 11:02 ssd1305\SSD1305.c
文件 2848 2014-08-21 14:58 ssd1305\SSD1305.h
文件 32437 2014-09-28 10:40 ssd1305\SSD1305_font.c
文件 1610 2014-09-28 10:44 ssd1305\SSD1305_font.h
目录 0 2014-10-12 17:55 ssd1305
----------- --------- ---------- ----- ----
76410 5
相关资源
- Spire API文档
- The direction of synaptic plasticity mediated
- 基于xilinx FPGA的PCIe设计实战
- 飞思卡尔单片机MC9S12XS12G128驱动(硬件
- 51模拟SPI读写SD卡(包括Fat和Fat32文件
- 一个简单的verilog编写的DMA IP CORE,和
- 28335写的用spi读取传感器数据并用CA
- STM32F103 CC2500完整驱动(模拟SPI)
- 手机短信api接口(源代码)
- cs5530的SPI程序
- 9s12单片机SPI功能代码
- stm32 用SPI 方式读写 SDHC
- stm32通过DMA方式采集ADC数据
- SPI Master 的Verilog源代码
- Spire.Doc 破解版
- Spin-1目标的广义parton分布的多项式和
- 介子和S波氘核的四极矩以及对spin-1系
- 基于SPCE061A和PTR8000的模拟SPI总线通信
- stm32的DAC播放音乐文件
- 用8位spi实现16位spi
- linux SPI设备注册和驱动小结
- 用Verilog语言写的CPLD和MCU通讯的SPI接口
- STM32F103 USART+DMA
- DMA+stm32 407.zip
- 4_USART串口通信(空闲中断+DMA.zip
- stm32f105-usart-DMA收发demo
- STM32F042F6P6 Uart12DMA;发送中断接收
- Spirent iTest用户手册详细介绍iTest的各
- 精确结果为3d N $$ \\ mathcal {N} $$ = 2 S
- TD-SCDMA网络测试仪中E1数据采集卡的驱
评论
共有 条评论