项目作者: sunlinjin

项目描述 :
SSD1306(I2C接口)OLED的Linux驱动
高级语言: C
项目地址: git://github.com/sunlinjin/SSD1306-I2C-Linux-Driver.git
创建时间: 2017-06-15T08:24:36Z
项目社区:https://github.com/sunlinjin/SSD1306-I2C-Linux-Driver

开源协议:Creative Commons Attribution Share Alike 4.0 International

下载


SSD1306-I2C-Linux-Driver

使用SSD1306驱动芯片以及I2C总线接口的OLED模块的Linux用户态驱动程序。本程序适用于Linux操作系统。已经在Raspberry Pi(Raspbian)、Intel Galileo Gen1(Yocto Linux)、NanoPi 2 Fire(Debian)等单板机上测试通过。

兼容性说明

请根据实际情况,修改SSD1306.h中,关于I2C设备文件和I2C从设备地址的宏定义。

  1. #define SSD1306_I2C_DEVFILE "/dev/i2c-0" // Galileo Gen1
  2. #define SSD1306_I2C_ADDR 0x3c // ==(SSD1306_Address)

以及,根据所使用平台不同(例如使用STM32、8051等平台),请修改SSD1306.c中,函数SSD1306_sendCommand()SSD1306_sendData()的具体实现。

权利声明

原始文件附带的权利声明:

  1. /*
  2. 06/01/2016
  3. Author: Makerbro
  4. Platforms: ESP8266
  5. Language: C++
  6. File: ACROBOTIC_SSD1306.h
  7. ------------------------------------------------------------------------
  8. Description:
  9. SSD1306 OLED Driver Library.
  10. ------------------------------------------------------------------------
  11. Please consider buying products from ACROBOTIC to help fund future
  12. Open-Source projects like this! We'll always put our best effort in every
  13. project, and release all our design files and code for you to use.
  14. https://acrobotic.com/
  15. ------------------------------------------------------------------------
  16. License:
  17. Released under the MIT license. Please check LICENSE.txt for more
  18. information. All text above must be included in any redistribution.
  19. */

本版本由mikukonai出于个人使用目的改写。