• 大小: 943KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-23
  • 语言: 其他
  • 标签: OLED  SH1106驱动  

资源简介

OLED显示,驱动芯片包含SH1106驱动、SH1306.总线SPI,I2C只需修改读写子程序。文档有初始化、读写、8*16、16*16、图片显示,有详细说明。只需简单修改就可以使用!

资源截图

代码片段和文件信息

/* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved.
 *
 * The information contained herein is property of Nordic Semiconductor ASA.
 * Terms and conditions of usage are described in detail in NORDIC
 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
 *
 * Licensees are granted free non-transferable use of the information. NO
 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
 * the file.
 *
 */

/** @file
* @brief Example project on GPIO usage to drive LEDs
* @defgroup gpio_example_pca10001 GPIO example
* @{
* @ingroup nrf_examples_pca10001
*
* @brief Example of GPIO output usage.
*
* This example shows how to configure GPIO pins as outputs which can also be used to drive LEDs.
* Each LED is set on one at a time and each state lasts 100 milliseconds.
*/

#include 
#include 
#include “nrf_delay.h“
#include “nrf_gpio.h“
#include “oled.h“

/***************************16*16?????????:??棗???棗????*********/

unsigned char  F16x16[] =      
{     
0x400x400x800xF00x800x400x400x000x020x020x010x0F0x010x020x020x00/*“*“0*/
0x400x400x800xF00x800x400x400x000x020x020x010x0F0x010x020x020x00/*“*“1*/
0x400x400x800xF00x800x400x400x000x020x020x010x0F0x010x020x020x00/*“*“0*/
0x400x400x800xF00x800x400x400x000x020x020x010x0F0x010x020x020x00/*“*“1*/


0x100x310x630x060x000xFE0xFE0x060x060x060x060x060x060x060x000x00
0x000x600x3C0x070x000x7F0x7F0x600x600x600x600x600x600x600x000x00/*?/


0x180x980x480x680xA80xA80x6F0x6F0x6A0xAA0xAA0x6A0x5A0x9A0x000x00
0x020x020x030x7F0x7F0x550x550x550x550x550x7F0x7F0x030x020x020x00//


0x880xCC0xE60x330x5C0x580x5F0x580x5C0x600xF80x1F0xFF0xF80x180x00
0x000x7F0x7F0x000x3F0x0F0x030x1F0x580x6C0x330x1C0x3F0x630x400x00//


0x600x620xE60xEC0x000xF30xF30xB70xBF0xFB0xFF0xB70xF30xF10x000x00
0x400x600x3F0x1F0x300x6F0x6F0x620x620x6F0x6F0x620x6F0x6F0x600x00//

0x400x400x800xF00x800x400x400x000x020x020x010x0F0x010x020x020x00/*“*“0*/
0x400x400x800xF00x800x400x400x000x020x020x010x0F0x010x020x020x00/*“*“1*/
0x400x400x800xF00x800x400x400x000x020x020x010x0F0x010x020x020x00/*“*“8*/
0x400x400x800xF00x800x400x400x000x020x020x010x0F0x010x020x020x00/*“*“9*/


0x400x400x480x480x480xC80x780x4F0x480x480x480x480x480x400x400x00
0x000x000x000x000x030x120x120x220x220x520x8A0x060x000x000x000x00/*“?“0*/
0x000x100x600x800x000xFF0x000x000x000xFF0x000x000xC00x300x000x00
0x400x400x400x430x400x7F0x400x400x400x7F0x420x410x400x400x400x00/*“?“1*/
0x000x000xF80x880x880x880x880xFF0x880x880x880x880xF80x000x000x00
0x000x000x1F0x080x080x080x080x7F0x880x880x880x880x9F0x800xF00x00/*“?“2*/
0x800x820

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件     1471611  2012-02-23 10:14  OLED SH1106\SH1106 V0.1.pdf
     文件       26596  2015-12-22 13:21  OLED SH1106\oled.c
     文件        1409  2015-12-21 16:49  OLED SH1106\oled.h
     目录           0  2015-12-22 13:22  OLED SH1106\

评论

共有 条评论