资源简介
SSD1305的初始化代码,使用台湾悠景的2.23寸128*32点阵OLED测试。同样适用于其他尺寸使用相同驱动器的型号。包括奇晶等其他品牌。
代码片段和文件信息
/******************** (C) COPYRIGHT 2007 STMicroelectronics ********************
* File Name : main.c
* Author : MCD Application Team
* Date First Issued : 05/21/2007
* Description : Main program body
********************************************************************************
* History:
* 05/21/2007: V0.3
********************************************************************************
* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
* AS A RESULT STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*******************************************************************************/
/* Includes ------------------------------------------------------------------*/
#include “stm32f10x_lib.h“
#include “OLED.H“
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
ErrorStatus HSEStartUpStatus;
/* Private function prototypes -----------------------------------------------*/
void RCC_Configuration(void);
void NVIC_Configuration(void);
void GPIO_Configuration(void);
/*******************************************************************************
* Function Name : main
* Description : Main program.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
int main(void)
{
#ifdef DEBUG
debug();
#endif
RCC_Configuration();
GPIO_Configuration();
NVIC_Configuration();
OLED_Config();
OLED_initialize();
while(1)
{
fill(0x550xAA);
fill(0xFF0xFF);
fill(0x550x55);
fill(0x000xff);
showpic();
fill(0x000x00);
}
}
#ifdef DEBUG
/*******************************************************************************
* Function Name : assert_failed
* Description : Reports the name of the source file and the source line number
* where the assert error has occurred.
* Input : - file: pointer to the source file name
* - line: assert error line source number
* Output : None
* Return : None
*******************************************************************************/
void assert_failed(u8* file u32 line)
{
/* User can add his own implementation to report the file name and line number */
printf(“\n\r Wrong parameter value detected on\r\n“);
printf(“ file %s\r\n“ fil
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6061 2011-02-21 15:12 OLED.C
文件 430 2011-02-21 15:06 OLED.H
文件 5258 2011-02-21 15:06 main.c
----------- --------- ---------- ----- ----
11749 3
相关资源
- HAL库下的OLED移植
- K60驱动OLED液晶屏程序
- 第四章 畅学多功能实验箱液晶资源详
- STM32F030C8 寄存器操作 OELD屏
- STM32+DHT11+OLED+RTC+MQ2+NRF24L01+串口12
- T12白光电烙铁
- 0.96OLED_C51系列_IIC应答_例程
- HAL库的OLED 移植
- Keil5下的STM32F407程序
- zw_OLED-STM32F4-IIC.zip
- OLED显示汉字
- ESP8266+OLED屏实现天气预报+温度显示
- 基于stm32和ad9850的dds信号源
- 基于IIC的OLED显示程序
- 基于STM32F1的OLED7线例程
- STM32单片机控制的自动浇水系统+OLED显
- 1.3寸OLED带字库全套资料及各种单片机
- 0.96寸OLED带字库全套资料包含各种单片
- oled案列和中文手册
- STM32F103驱动7针OLED128x64实现方式:硬件
- OLED程序例程(STM32_OLED(C8T6))
- OLED程序例程K60_4WIRE_SPI例程
- 基于stm32数字光强计GY-30光强采集ole
- stm32f013 OLED 屏幕和粉尘传感器串口
- 分享一个0.96的oled显示驱动,软件模拟
- STM32F103C8T6+OLED
- STM32F103C8T6+DHT11+OLED
- stm32f103c8t6 OLED 硬件SPI
- STM32用IIC通信实现OLED显示程序代码及
- STM32_(OLED)显示温度烟雾浓度工程
评论
共有 条评论