资源简介
OLED屏幕加C语言程序例程,能够方便开发人员使用OLED屏幕观察实验现象
代码片段和文件信息
/*
U8glib.cpp
C++ Interface
Universal 8bit Graphics Library
Copyright (c) 2011 olikraus@gmail.com
All rights reserved.
Redistribution and use in source and binary forms with or without modification
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice this list
of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice this
list of conditions and the following disclaimer in the documentation and/or other
materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS “AS IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES
INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL
SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT
NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT
STRICT LIABILITY OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include “U8glib.h“
uint8_t U8GLIB::initSPI(u8g_dev_t *dev uint8_t sck uint8_t mosi uint8_t cs uint8_t a0 uint8_t reset)
{
prepare();
return u8g_InitSPI(&u8g dev sck mosi cs a0 reset);
}
uint8_t U8GLIB::initHWSPI(u8g_dev_t *dev uint8_t cs uint8_t a0 uint8_t reset)
{
prepare();
return u8g_InitHWSPI(&u8g dev cs a0 reset);
}
uint8_t U8GLIB::initI2C(u8g_dev_t *dev uint8_t options)
{
prepare();
return u8g_InitI2C(&u8g dev options);
}
uint8_t U8GLIB::init8Bit(u8g_dev_t *dev uint8_t d0 uint8_t d1 uint8_t d2 uint8_t d3 uint8_t d4 uint8_t d5 uint8_t d6 uint8_t d7
uint8_t en uint8_t cs1 uint8_t cs2 uint8_t di uint8_t rw uint8_t reset)
{
prepare();
return u8g_Init8Bit(&u8g dev d0 d1 d2 d3 d4 d5 d6 d7 en cs1 cs2 di rw reset);
}
uint8_t U8GLIB::init8BitFixedPort(u8g_dev_t *dev uint8_t en uint8_t cs uint8_t di uint8_t rw uint8_t reset)
{
prepare();
return u8g_Init8BitFixedPort(&u8g dev en cs di rw reset);
}
uint8_t U8GLIB::initRW8Bit(u8g_dev_t *dev uint8_t d0 uint8_t d1 uint8_t d2 uint8_t d3 uint8_t d4 uint8_t d5 uint8_t d6 uint8_t d7
uint8_t cs uint8_t a0 uint8_t wr uint8_t rd uint8_t reset)
{
prepare();
return u8g_InitRW8Bit(&u8g dev d0 d1 d2 d3 d4 d5 d6 d7 cs a0 wr rd reset);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2807 2017-11-24 10:27 中景园电子0-96寸OLED模块资料V3.0\Demo\Demo.ino\Demo.ino.ino
文件 2808 2017-11-23 22:45 中景园电子0-96寸OLED模块资料V3.0\Demo\Demo.ino1039440322054204312.tmp
文件 2809 2017-11-23 22:34 中景园电子0-96寸OLED模块资料V3.0\Demo\Demo.ino1126513690530722582.tmp
文件 2809 2017-11-23 22:34 中景园电子0-96寸OLED模块资料V3.0\Demo\Demo.ino1189458932369541827.tmp
文件 2808 2017-11-23 22:45 中景园电子0-96寸OLED模块资料V3.0\Demo\Demo.ino1594961160553638440.tmp
文件 2809 2017-11-23 22:34 中景园电子0-96寸OLED模块资料V3.0\Demo\Demo.ino400574954332661129.tmp
文件 2809 2017-11-23 22:34 中景园电子0-96寸OLED模块资料V3.0\Demo\Demo.ino4044939713757020509.tmp
文件 2808 2017-11-23 22:45 中景园电子0-96寸OLED模块资料V3.0\Demo\Demo.ino51820247391979271.tmp
文件 2808 2017-11-23 22:45 中景园电子0-96寸OLED模块资料V3.0\Demo\Demo.ino5185693768078268215.tmp
文件 2809 2017-11-23 22:34 中景园电子0-96寸OLED模块资料V3.0\Demo\Demo.ino5589188206133124340.tmp
文件 2809 2017-11-23 22:34 中景园电子0-96寸OLED模块资料V3.0\Demo\Demo.ino6551973952729802886.tmp
文件 2808 2017-11-23 22:45 中景园电子0-96寸OLED模块资料V3.0\Demo\Demo.ino7110734648017204169.tmp
文件 2809 2017-11-23 22:34 中景园电子0-96寸OLED模块资料V3.0\Demo\Demo.ino7128574343455881507.tmp
文件 2809 2017-11-23 22:33 中景园电子0-96寸OLED模块资料V3.0\Demo\Demo.ino7879267778245860686.tmp
文件 2809 2017-11-23 22:34 中景园电子0-96寸OLED模块资料V3.0\Demo\Demo.ino8571216485296289453.tmp
文件 2005 2017-11-24 14:49 中景园电子0-96寸OLED模块资料V3.0\Demo\DEMO111\DEMO111.ino
文件 22016 2017-11-24 14:32 中景园电子0-96寸OLED模块资料V3.0\Demo\DENO111测试代码第一次.doc
文件 19456 2017-11-20 19:49 中景园电子0-96寸OLED模块资料V3.0\Demo\ilove you 总评.doc
文件 19968 2017-11-20 21:14 中景园电子0-96寸OLED模块资料V3.0\Demo\Ilove you中评.doc
文件 1425 2017-11-24 10:02 中景园电子0-96寸OLED模块资料V3.0\Demo\simple_love\simple_love.ino
文件 1501 2017-11-24 11:29 中景园电子0-96寸OLED模块资料V3.0\Demo\text\text.ino
文件 36864 2017-11-20 19:14 中景园电子0-96寸OLED模块资料V3.0\Demo\程序文档.doc
文件 12183 2017-11-23 22:54 中景园电子0-96寸OLED模块资料V3.0\Demo\蓝牙基础代码.docx
文件 12921 2017-11-23 21:20 中景园电子0-96寸OLED模块资料V3.0\Demo\蓝牙通讯基础代码.docx
文件 1776692 2016-02-25 09:56 中景园电子0-96寸OLED模块资料V3.0\OLED反白显示技术资料.rar
文件 163210 2017-11-20 19:48 中景园电子0-96寸OLED模块资料V3.0\SPI接口arduino连接方式\arduino spi接口.docx
文件 175 2015-11-11 13:13 中景园电子0-96寸OLED模块资料V3.0\SPI接口arduino连接方式\arduinoOperation method\Operation method.txt
文件 6225 2014-07-05 16:10 中景园电子0-96寸OLED模块资料V3.0\SPI接口arduino连接方式\arduinoOperation method\U8glib\ChangeLog
文件 3751 2014-07-05 16:10 中景园电子0-96寸OLED模块资料V3.0\SPI接口arduino连接方式\arduinoOperation method\U8glib\examples\A2Printer\A2Printer.ino
文件 11286 2014-07-05 16:10 中景园电子0-96寸OLED模块资料V3.0\SPI接口arduino连接方式\arduinoOperation method\U8glib\examples\Bitmap\Bitmap.ino
............此处省略531个文件信息
评论
共有 条评论