# Adafruit GFX Library ![Build Status](https://github.com/adafruit/Adafruit-GFX-Library/workflows/Arduino%20Library%20CI/badge.svg)
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 and open-source hardware by purchasing products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, check license.txt for more information.
All text above must be included in any redistribution.
Recent Arduino IDE releases include the Library Manager for easy installation. Otherwise, to download, click the DOWNLOAD ZIP button, uncompress and rename the uncompressed folder Adafruit_GFX. Confirm that the Adafruit_GFX folder contains Adafruit_GFX.cpp and Adafruit_GFX.h. Place the Adafruit_GFX library folder your ArduinoSketchFolder/Libraries/ folder. You may need to create the Libraries subfolder if its your first library. Restart the IDE.
**You will also need to install the latest Adafruit BusIO library.** Search for "Adafruit BusIO" in the library manager, or install by hand from https://github.com/adafruit/Adafruit_BusIO
# Useful Resources
- Image2Code: This is a handy Java GUI utility to convert a BMP file into the array code necessary to display the image with the drawBitmap function. Check out the code at ehubin's GitHub repository: https://github.com/ehubin/Adafruit-GFX-Library/tree/master/Img2Code
- drawXBitmap function: You can use the GIMP photo editor to save a .xbm file and use the array saved in the file to draw a bitmap with the drawXBitmap function. See the pull request here for more details: https://github.com/adafruit/Adafruit-GFX-Library/pull/31
- 'Fonts' folder contains bitmap fonts for use with recent (1.1 and later) Adafruit_GFX. To use a font in your Arduino sketch, \#include the corresponding .h file and pass address of GFXfont struct to setFont(). Pass NULL to revert to 'classic' fixed-space bitmap font.
- 'fontconvert' folder contains a command-line tool for converting TTF fonts to Adafruit_GFX header format.
---
### Roadmap
The PRIME DIRECTIVE is to maintain backward compatibility with existing Arduino sketches -- many are hosted elsewhere and don't track changes here, some are in print and can never be changed! This "little" library has grown organically over time and sometimes we paint ourselves into a design corner and just have to live with it or add ungainly workarounds.
Highly unlikely to merge any changes for additional or incompatible font formats (see Prime Directive above). There are already two formats and the code is quite bloaty there as it is (this also creates liabilities for tools and documentation). If you *must* have a more sophisticated font format, consider creating a fork with the features required for your project. For similar reasons, also unlikely to add any more bitmap formats, it's getting messy.
Please don't reformat code for the sake of reformatting code. The resulting large "visual diff" makes it impossible to untangle actual bug fixes from merely rearranged lines.
没有合适的资源?快使用搜索试试~ 我知道了~
Adafruit_GFX_Library_Adafruit_GFX.h_
共72个文件
h:58个
cpp:4个
c:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 4 下载量 16 浏览量
2021-09-30
00:58:46
上传
评论 3
收藏 309KB RAR 举报
温馨提示
Adafuit GFX library for Arduino
资源推荐
资源详情
资源评论
收起资源包目录
Adafruit_GFX_Library.rar (72个子文件)
Adafruit_GFX_Library
Adafruit_MonoOLED.h 4KB
glcdfont.c 9KB
Adafruit_GFX.h 16KB
Adafruit_SPITFT.cpp 93KB
Adafruit_MonoOLED.cpp 14KB
Adafruit_GFX.cpp 76KB
examples
mock_ili9341
mock_ili9341.ino 10KB
GFXcanvas
GFXcanvasSerialDemo.cpp 731B
GFXcanvasSerialDemo.h 883B
GFXcanvas.ino 2KB
Adafruit_SPITFT.h 24KB
README.md 3KB
library.properties 411B
gfxfont.h 1KB
Adafruit_SPITFT_Macros.h 329B
license.txt 1KB
fontconvert
makefonts.sh 1KB
Makefile 236B
fontconvert.c 10KB
fontconvert_win.md 4KB
Fonts
FreeSansOblique12pt7b.h 19KB
FreeMono12pt7b.h 13KB
FreeMono18pt7b.h 24KB
FreeSerifBold9pt7b.h 11KB
FreeSerifBoldItalic9pt7b.h 12KB
Tiny3x3a2pt7b.h 6KB
FreeSansBold9pt7b.h 12KB
FreeSerifItalic9pt7b.h 11KB
FreeSerifBold18pt7b.h 31KB
FreeMonoOblique18pt7b.h 26KB
FreeSans24pt7b.h 51KB
FreeSansBold24pt7b.h 55KB
FreeSansBoldOblique18pt7b.h 37KB
TomThumb.h 23KB
FreeSerif9pt7b.h 11KB
FreeSansOblique24pt7b.h 59KB
Picopixel.h 9KB
FreeSansBoldOblique24pt7b.h 63KB
FreeSansBoldOblique12pt7b.h 20KB
FreeMonoBold9pt7b.h 11KB
FreeMonoBold24pt7b.h 46KB
FreeSansBoldOblique9pt7b.h 13KB
FreeMonoBold18pt7b.h 28KB
FreeSerifBold24pt7b.h 53KB
FreeMonoOblique24pt7b.h 44KB
FreeSansBold18pt7b.h 32KB
FreeSans18pt7b.h 30KB
FreeMonoBoldOblique18pt7b.h 31KB
FreeSerif24pt7b.h 48KB
FreeSansOblique9pt7b.h 13KB
FreeSansOblique18pt7b.h 35KB
FreeMono9pt7b.h 9KB
FreeMonoBold12pt7b.h 15KB
Org_01.h 9KB
FreeSerif18pt7b.h 28KB
FreeMonoOblique9pt7b.h 10KB
FreeSerifBold12pt7b.h 17KB
FreeSerifItalic18pt7b.h 30KB
FreeMonoBoldOblique12pt7b.h 17KB
FreeSansBold12pt7b.h 18KB
FreeMono24pt7b.h 39KB
FreeSerifBoldItalic12pt7b.h 18KB
FreeSerifItalic12pt7b.h 17KB
FreeSerifBoldItalic18pt7b.h 34KB
FreeSans9pt7b.h 11KB
FreeSans12pt7b.h 17KB
FreeSerif12pt7b.h 16KB
FreeSerifBoldItalic24pt7b.h 55KB
FreeMonoBoldOblique9pt7b.h 12KB
FreeMonoBoldOblique24pt7b.h 52KB
FreeMonoOblique12pt7b.h 15KB
FreeSerifItalic24pt7b.h 51KB
共 72 条
- 1
心若悬河
- 粉丝: 51
- 资源: 3956
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
前往页