资源简介
新SPI版0.96寸OLED显示屏资料(SSD1306)蓝色,stm32 spi通信
![](http://www.nz998.com/pic/50758.jpg)
代码片段和文件信息
/*
This is the core graphics library for all our displays providing a common
set of graphics primitives (points lines circles etc.). It needs to be
paired with a hardware-specific library for each display device we carry
(to handle the lower-level functions).
Adafruit invests time and resources providing this open source code please
support Adafruit & open-source hardware by purchasing products from Adafruit!
Copyright (c) 2013 Adafruit Industries. 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 “Adafruit_GFX.h“
#include “glcdfont.c“
#ifdef __AVR__
#include
#else
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
#endif
Adafruit_GFX::Adafruit_GFX(int16_t w int16_t h):
WIDTH(w) HEIGHT(h)
{
_width = WIDTH;
_height = HEIGHT;
rotation = 0;
cursor_y = cursor_x = 0;
textsize = 1;
textcolor = textbgcolor = 0xFFFF;
wrap = true;
}
// Draw a circle outline
void Adafruit_GFX::drawCircle(int16_t x0 int16_t y0 int16_t r
uint16_t color) {
int16_t f = 1 - r;
int16_t ddF_x = 1;
int16_t ddF_y = -2 * r;
int16_t x = 0;
int16_t y = r;
drawPixel(x0 y0+r color);
drawPixel(x0 y0-r color);
drawPixel(x0+r y0 color);
drawPixel(x0-r y0 color);
while (x if (f >= 0) {
y--;
ddF_y += 2;
f += ddF_y;
}
x++;
ddF_x += 2;
f += ddF_x;
drawPixel(x0 + x y0 + y color);
drawPixel(x0 - x y0 + y color);
drawPixel(x0 + x y0 - y color);
drawPixel(x0 - x y0 - y color);
drawPixel(x0 + y y0 + x color);
drawPixel(x0 - y y0 + x color);
drawPixel(x0 + y y0 - x color);
drawPixel(x0 - y y0 - x color);
}
}
void Adafruit_GFX::drawCircleHelper( int16_t x0 int16_t y0
int
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 718802 2013-08-19 22:14 新OLED显示屏资料(SSD1306)\128x64取字软件.rar
文件 12331 2013-07-05 14:51 新OLED显示屏资料(SSD1306)\Arduino-OLED例程\Demo\Adafruit_GFX\Adafruit_GFX.cpp
文件 2786 2013-07-05 14:51 新OLED显示屏资料(SSD1306)\Arduino-OLED例程\Demo\Adafruit_GFX\Adafruit_GFX.h
文件 8140 2013-07-05 14:51 新OLED显示屏资料(SSD1306)\Arduino-OLED例程\Demo\Adafruit_GFX\glcdfont.c
文件 1344 2013-07-05 14:51 新OLED显示屏资料(SSD1306)\Arduino-OLED例程\Demo\Adafruit_GFX\license.txt
文件 947 2013-07-05 14:51 新OLED显示屏资料(SSD1306)\Arduino-OLED例程\Demo\Adafruit_GFX\README.txt
文件 18574 2013-07-05 11:38 新OLED显示屏资料(SSD1306)\Arduino-OLED例程\Demo\Adafruit_SSD1306\Adafruit_SSD1306.cpp
文件 4378 2013-07-05 11:38 新OLED显示屏资料(SSD1306)\Arduino-OLED例程\Demo\Adafruit_SSD1306\Adafruit_SSD1306.h
文件 9098 2013-07-06 02:38 新OLED显示屏资料(SSD1306)\Arduino-OLED例程\Demo\Adafruit_SSD1306\examples\ssd1306_128x32_i2c\ssd1306_128x32_i2c.ino
文件 9139 2013-07-06 02:38 新OLED显示屏资料(SSD1306)\Arduino-OLED例程\Demo\Adafruit_SSD1306\examples\ssd1306_128x32_spi\ssd1306_128x32_spi.ino
文件 9097 2013-07-06 02:38 新OLED显示屏资料(SSD1306)\Arduino-OLED例程\Demo\Adafruit_SSD1306\examples\ssd1306_128x64_i2c\ssd1306_128x64_i2c.ino
文件 9141 2013-07-06 02:38 新OLED显示屏资料(SSD1306)\Arduino-OLED例程\Demo\Adafruit_SSD1306\examples\ssd1306_128x64_spi\ssd1306_128x64_spi.ino
文件 1499 2013-07-05 11:38 新OLED显示屏资料(SSD1306)\Arduino-OLED例程\Demo\Adafruit_SSD1306\license.txt
文件 1221 2013-07-05 11:38 新OLED显示屏资料(SSD1306)\Arduino-OLED例程\Demo\Adafruit_SSD1306\README.txt
文件 9141 2013-07-06 02:38 新OLED显示屏资料(SSD1306)\Arduino-OLED例程\Demo\Demo.ino
文件 142 2014-05-25 11:35 新OLED显示屏资料(SSD1306)\Arduino-OLED例程\Demo\使用说明.txt
文件 8172 2014-05-22 18:36 新OLED显示屏资料(SSD1306)\AVR-OLED例程\oled.c
文件 771 2014-05-22 18:30 新OLED显示屏资料(SSD1306)\AVR-OLED例程\oled.h
文件 30134 2014-05-25 11:40 新OLED显示屏资料(SSD1306)\C51-OLED例程(STC89C52)\OLED\codetab.h
文件 7065 2014-05-25 11:48 新OLED显示屏资料(SSD1306)\C51-OLED例程(STC89C52)\OLED\LQ12864.h
文件 18526 2014-05-25 11:48 新OLED显示屏资料(SSD1306)\C51-OLED例程(STC89C52)\OLED\OLED
文件 18408 2014-05-25 11:48 新OLED显示屏资料(SSD1306)\C51-OLED例程(STC89C52)\OLED\OLED.hex
文件 45 2014-05-25 11:48 新OLED显示屏资料(SSD1306)\C51-OLED例程(STC89C52)\OLED\OLED.lnp
文件 17156 2014-05-25 11:48 新OLED显示屏资料(SSD1306)\C51-OLED例程(STC89C52)\OLED\OLED.M51
....... 1662 2013-12-03 21:03 新OLED显示屏资料(SSD1306)\C51-OLED例程(STC89C52)\OLED\OLED.opt.bak
文件 1595 2014-05-25 11:52 新OLED显示屏资料(SSD1306)\C51-OLED例程(STC89C52)\OLED\OLED.plg
....... 2191 2013-08-22 15:55 新OLED显示屏资料(SSD1306)\C51-OLED例程(STC89C52)\OLED\OLED.Uv2.bak
....... 141409 2014-05-25 11:52 新OLED显示屏资料(SSD1306)\C51-OLED例程(STC89C52)\OLED\OLED.uvgui.Aaron_Lee
....... 7825 2014-05-25 11:52 新OLED显示屏资料(SSD1306)\C51-OLED例程(STC89C52)\OLED\OLED.uvopt
....... 13753 2014-05-25 11:52 新OLED显示屏资料(SSD1306)\C51-OLED例程(STC89C52)\OLED\OLED.uvproj
............此处省略115个文件信息
相关资源
- stm32f407上的两个can发送和接收例程
- STM32 led 时钟
- STM32 2.4G通信例程
- 直流无刷电机方波驱动 stm32 例程代码
- STM32中文资料
- STM32蓝牙和串口程序
- STM32f103超声波模块例程
- stm32f103c8t6 4 oled.rar
- stm32f030 IAP Demo(原创)
- STM32基于rt_thread操作系统的SDHC卡文件
- 38k单片机红外发送代码、keil
- NRF24L01实现51与STM32双向通讯
- STM32F103 串口程序(完整版)
- stm32 ds18b20 温度传感器 测试通过
- stm32官方例程
- STM32F103定时器中断程序
- [免费]基于stm32f103ze 的OLED驱动代码
- STM32F103RBT6驱动UC1698控制芯片的160160黑
- STM32F103 DS18B20 V3.5.0固件库驱动程序工
- STM32定时器使用入门。看了这个程序会
- SIM908 SDIO FSMC STM32 FIFO
- 2410的led测试程序keil可以用
- STM32F103 CC2500完整驱动(模拟SPI)
- AD7606采集程序
- keil vcom windows 7 64bit 驱动
- 基于8051单片机的红外接收程序
- stm32 用SPI 方式读写 SDHC
- stm32通过DMA方式采集ADC数据
- 意法半导体STM全系列微控制器STM32ST
- 基于STM32芯片的SX1278 驱动 LORA.rar
评论
共有 条评论