ESP8266 OLED 4Pin0.96 IIC测试程序.rar


经典的测试程序,ESP8266 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“


#if defined(U8G_WITH_PINLIST)
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); 
}
#endif


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       7089  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibChangeLog

     文件       3754  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibexamplesA2PrinterA2Printer.ino

     文件      12829  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibexamplesBitmapBitmap.ino

     文件      13988  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibexamplesChessChess.ino

     文件      12997  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibexamplesColorColor.ino

     文件      15248  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibexamplesConsoleConsole.ino

     文件      13137  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibexamplesFF.ino

     文件      20431  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibexamplesFPSFPS.ino

     文件      16030  2017-06-26 12:04  4Pin0.96 IIC测试程序U8glibexamplesGraphicsTestGraphicsTest.ino

     文件      13181  2017-09-04 11:29  4Pin0.96 IIC测试程序U8glibexamplesHelloWorldHelloWorld.ino

     文件      15338  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibexamplesMenuMenu.ino

     文件      12076  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibexamplesPrintTestPrintTest.ino

     文件      13312  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibexamplesRotationRotation.ino

     文件      13357  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibexamplesScaleScale.ino

     文件      13237  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibexamplesTextRotXTextRotX.ino

     文件      16847  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibexamplesTouch4WSetupTouch4WSetup.ino

     文件      16655  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibexamplesTouch4WTestTouch4WTest.ino

     文件      14017  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibexamplesU8gLogoU8gLogo.ino

     文件      13539  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibexamplesXBMXBM.ino

     文件        733  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibINSTALL.TXT

     文件       3911  2015-07-18 12:25  4Pin0.96 IIC测试程序U8gliblicense.txt

     文件       2799  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibU8glib.cpp

     文件      57590  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibU8glib.h

     文件      63396  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibutilitychessengine.c

     文件      92341  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibutilityu8g.h

     文件       4103  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibutilityu8g_bitmap.c

     文件       9686  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibutilityu8g_circle.c

     文件       4498  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibutilityu8g_clip.c

     文件       4587  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibutilityu8g_com_api.c

     文件       3407  2015-07-18 12:25  4Pin0.96 IIC测试程序U8glibutilityu8g_com_api_16gr.c

............此处省略137个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)