资源简介
ILI9486 3.5TFT液晶屏Arduino驱动,有Arduino各种使用例程

代码片段和文件信息
/*
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;
font_width = 5;
font_height = 8;
font_addr = (unsigned char *)font;
font_offset = 0;
}
// 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2471 2017-11-07 17:22 tft_drivers\initlcd.h
文件 328 2014-12-13 16:55 tft_drivers\setxy.h
文件 5269 2017-12-25 16:56 Arduino Demo_UNO&Mega2560\Example01-DisplayString\DisplayString\DisplayString.ino
文件 11425 2017-12-25 16:47 Arduino Demo_UNO&Mega2560\Example02-graphicstest\graphicstest\graphicstest.ino
文件 3386 2016-09-08 05:52 Arduino Demo_UNO&Mega2560\Example03-readpixel_kbv\readpixel_kbv\readpixel_kbv.ino
文件 5624 2016-09-08 05:52 Arduino Demo_UNO&Mega2560\Example04-testcard_kbv\testcard_kbv\testcard_kbv.ino
文件 1384 2016-09-08 05:52 Arduino Demo_UNO&Mega2560\Example05-scroll_kbv\scroll_kbv\scroll_kbv.ino
文件 40337 2016-05-03 12:02 Arduino Demo_UNO&Mega2560\Example06-DisplayChinese\145859l2bib55pq26bdd26.png
文件 32216 2016-05-03 12:02 Arduino Demo_UNO&Mega2560\Example06-DisplayChinese\145859n99ee0c9hqmdq03i.png
文件 6005 2017-12-25 16:48 Arduino Demo_UNO&Mega2560\Example06-DisplayChinese\DisplayChinese\DisplayChinese.ino
文件 432 2016-05-03 12:38 Arduino Demo_UNO&Mega2560\Example06-DisplayChinese\取摸说明.txt
文件 262741 2016-05-03 12:02 Arduino Demo_UNO&Mega2560\Example06-DisplayChinese\字模软件2.2最终版本.rar
文件 460854 2017-11-07 16:28 Arduino Demo_UNO&Mega2560\Example07-ShowBMP_320X480\PIC\01.bmp
文件 460854 2017-11-07 16:30 Arduino Demo_UNO&Mega2560\Example07-ShowBMP_320X480\PIC\02.bmp
文件 460854 2017-11-07 16:25 Arduino Demo_UNO&Mega2560\Example07-ShowBMP_320X480\PIC\03.bmp
文件 460854 2017-11-07 16:21 Arduino Demo_UNO&Mega2560\Example07-ShowBMP_320X480\PIC\04.bmp
文件 312 2017-11-07 15:51 Arduino Demo_UNO&Mega2560\Example07-ShowBMP_320X480\ReadMe.txt
文件 8795 2017-12-25 16:59 Arduino Demo_UNO&Mega2560\Example07-ShowBMP_320X480\ShowBMP\ShowBMP.ino
文件 6955 2017-12-25 16:49 Arduino Demo_UNO&Mega2560\Example08-GLUE_Demo_480x320\GLUE_Demo_480x320\GLUE_Demo_480x320.ino
文件 11733 2017-12-25 16:51 Arduino Demo_UNO&Mega2560\Example09-TouchScreen_Calibr_kbv\TouchScreen_Calibr_kbv\TouchScreen_Calibr_kbv.ino
文件 7715 2017-12-25 16:05 Arduino Demo_UNO&Mega2560\Example10-Touch\tftpaint\tftpaint.ino
文件 11391 2017-12-25 16:43 Arduino Demo_UNO&Mega2560\Example11-Phonecal - 480X320\phonecal\phonecal.ino
文件 16887 2017-12-09 17:18 Arduino Demo_UNO&Mega2560\Install libraries\Adafruit_GFX\Adafruit_GFX.cpp
文件 4005 2017-12-09 17:19 Arduino Demo_UNO&Mega2560\Install libraries\Adafruit_GFX\Adafruit_GFX.h
文件 11388 2016-05-03 12:14 Arduino Demo_UNO&Mega2560\Install libraries\Adafruit_GFX\glcdfont.c
文件 388 2015-06-27 11:47 Arduino Demo_UNO&Mega2560\Install libraries\Adafruit_GFX\library.properties
文件 1344 2014-09-28 09:52 Arduino Demo_UNO&Mega2560\Install libraries\Adafruit_GFX\license.txt
文件 1532 2014-09-28 09:52 Arduino Demo_UNO&Mega2560\Install libraries\Adafruit_GFX\README.txt
文件 32544 2017-12-06 11:38 Arduino Demo_UNO&Mega2560\Install libraries\Adafruit_TFTLCD\Adafruit_TFTLCD.cpp
文件 3138 2014-11-13 23:38 Arduino Demo_UNO&Mega2560\Install libraries\Adafruit_TFTLCD\Adafruit_TFTLCD.h
............此处省略146个文件信息
- 上一篇:OMG测试小组.rar
- 下一篇:Cajviewer6.0 绿色精简版 不卡
相关资源
- ADNS-3080光流传感器测试程序Arduino
- EESkill NRF24L01 无线模块用户手册
- Arduino nano 工程文件
- Arduino教程 Lesson 之--自制风扇
- 基于Arduino的智能环境监控系统设计
- 基于Arduino和Machtalk的温棚环境监测系
- arduino pca9685多舵机同时控制案例
- arduino技术内幕
- Arduino电子设计实战指南.零基础篇_超
- 物联网智能家居平台DIY:ARDUINO 物联网
- 实验1.zip arduino跑马灯led灯实验,串口
- opencat所有资料.zip
- arduino主机,stm8从机。I2C测试 。每次
- DS18B20_Serial_println.ino
- ps2手柄arduino库文件
- 基于手机蓝牙的arduino遥控小车
- arduino中的can库函数
- 密码+指纹锁资料包.rar
- 贝壳物联arduino esp8266 demo版本
- HMC5883L罗盘指南针模块库文件及中英文
- arduino 小贱钟源码及教程
- Atom-TMC2208Pilot在Arduino上运行的应用程
- 写字机制作方案
- PID-增量式PID和位置式PID算法实现和
- Building Wireless Sensor Networks Using Arduin
- vc控制Arduino,实现串口通信
- Arduino入门经典
- Arduino所有库.zip
- 基于STM32和arduino的MPU9250九轴传感器代
- STM32综合测试程序4.0寸ILI9486_320X480_8位
评论
共有 条评论