资源简介
新SPI版0.96寸OLED显示屏资料(SSD1306)蓝色,stm32 spi通信
代码片段和文件信息
/*
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个文件信息
相关资源
- STM32内部DAC(PA4)输出
- 基于STM32CubeIDE的光栅尺测试程序
- stm32F103ZET6 PCB+原理图
- STM32F103C8T6外部中断.rar
- 基于stm32f103zet6的0.96寸的OLED显示屏源
- stm32 modbus代码
- ds3231时钟stm32文件包
- stm32下通过fsmc驱动fpga通讯的例程
- stm32f4 ad波形采集用da接示波器
- STM32 超声波测距例程
- stm32+MLX90614测温代码.rar
- STM32实现GPRS与服务器数据传输 相关源
- stm32超声波读取数据串口输出数据
- LDC1000 STM32
- 正点原子STM32F407 BMP180测试程序
- stm32f103的SD卡-SDIO-FATFS
- STM32L152程序模板
- STM32 实现二维码解码
- stm32控制迪文液晶
- W25Q64Flash芯片STM32操作
- STM32 SHT30温湿度检测
- stm32-sx1278-lora驱动程序
- STM32F103RCT6 12864液晶驱动
- UM0492_STM32F103XX_永磁同步电机_PMSM_FOC软
- stm32f103双串口收发结构体版本.zip
- 基于stm32制作的电子体重秤源码
- STM32驱动新西达2212无刷电机程序
- 基于stm32的超声波测距串口输出US100模
- STM32F103RCT6程序例
- 基于物联网的多功能电子药箱
评论
共有 条评论