资源简介
1.44寸_TFT彩色液晶显示屏包含Arduino、K60、STM32F103C8T6、C51 SPI驱动源码;还图片、文字取模工具;还有,模块的原理尺寸图,以及芯片介绍
代码片段和文件信息
/***************************************************
This is a library for the Adafruit 1.8“ SPI display.
This library works with the Adafruit 1.8“ TFT Breakout w/SD card
----> http://www.adafruit.com/products/358
The 1.8“ TFT shield
----> https://www.adafruit.com/product/802
The 1.44“ TFT breakout
----> https://www.adafruit.com/product/2088
as well as Adafruit raw 1.8“ TFT display
----> http://www.adafruit.com/products/618
Check out the links above for our tutorials and wiring diagrams
These displays use SPI to communicate 4 or 5 pins are required to
interface (RST is optional)
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.
MIT license all text above must be included in any redistribution
****************************************************/
#include “Adafruit_ST7735.h“
#include
#include “pins_arduino.h“
#include “wiring_private.h“
#include
inline uint16_t swapcolor(uint16_t x) {
return (x << 11) | (x & 0x07E0) | (x >> 11);
}
// Constructor when using software SPI. All output pins are configurable.
Adafruit_ST7735::Adafruit_ST7735(int8_t cs int8_t rs int8_t sid int8_t sclk int8_t rst)
: Adafruit_GFX(ST7735_TFTWIDTH ST7735_TFTHEIGHT_18)
{
_cs = cs;
_rs = rs;
_sid = sid;
_sclk = sclk;
_rst = rst;
hwSPI = false;
}
// Constructor when using hardware SPI. Faster but must use SPI pins
// specific to each board type (e.g. 1113 for Uno 5152 for Mega etc.)
Adafruit_ST7735::Adafruit_ST7735(int8_t cs int8_t rs int8_t rst)
: Adafruit_GFX(ST7735_TFTWIDTH ST7735_TFTHEIGHT_18) {
_cs = cs;
_rs = rs;
_rst = rst;
hwSPI = true;
_sid = _sclk = 0;
}
#if defined(CORE_TEENSY) && !defined(__AVR__)
#define __AVR__
#endif
#ifdef __AVR__
inline void Adafruit_ST7735::spiwrite(uint8_t c) {
//Serial.println(c HEX);
if (hwSPI) {
SPDR = c;
while(!(SPSR & _BV(SPIF)));
} else {
// Fast SPI bitbang swiped from LPD8806 library
for(uint8_t bit = 0x80; bit; bit >>= 1) {
if(c & bit) *dataport |= datapinmask;
else *dataport &= ~datapinmask;
*clkport |= clkpinmask;
*clkport &= ~clkpinmask;
}
}
}
void Adafruit_ST7735::writecommand(uint8_t c) {
*rsport &= ~rspinmask;
*csport &= ~cspinmask;
//Serial.print(“C “);
spiwrite(c);
*csport |= cspinmask;
}
void Adafruit_ST7735::writedata(uint8_t c) {
*rsport |= rspinmask;
*csport &= ~cspinmask;
//Serial.print(“D “);
spiwrite(c);
*csport |= cspinmask;
}
#endif //#ifdef __AVR__
#if defined(__SAM3X8E__)
inline void Adafruit_ST7735::spiwrite(uint8_t c) {
//Serial.println(c HEX);
if (hwSPI) {
SPI.transfer(c);
} else {
// Fast SPI bitbang swiped from LPD8806 library
for(uint8_t bit = 0x80; bit; bit >>= 1) {
if(c & bit) dataport->PIO_SODR |= datapin
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 837618 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\1.44寸7735_Arduino代码使用教程.pdf
文件 22782 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\Adafruit-ST7735-Library-master\Adafruit_ST7735.cpp
文件 5261 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\Adafruit-ST7735-Library-master\Adafruit_ST7735.h
文件 8513 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\Adafruit-ST7735-Library-master\examples\graphicstest\graphicstest.ino
文件 7916 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\Adafruit-ST7735-Library-master\examples\rotationtest\rotationtest.ino
文件 8337 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\Adafruit-ST7735-Library-master\examples\shieldtest\shieldtest.ino
文件 8119 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\Adafruit-ST7735-Library-master\examples\soft_spitftbitmap\soft_spitftbitmap.ino
文件 7700 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\Adafruit-ST7735-Library-master\examples\spitftbitmap\spitftbitmap.ino
文件 1260 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\Adafruit-ST7735-Library-master\README.txt
文件 9584 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\UTFT_Bitmap_128x128_Serial\icon1.c
文件 9585 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\UTFT_Bitmap_128x128_Serial\icon2.c
文件 37812 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\UTFT_Bitmap_128x128_Serial\tux.c
文件 1212 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\UTFT_Bitmap_128x128_Serial\UTFT_Bitmap_128x128_Serial.ino
文件 7096 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\UTFT_Demo_128x128_Serial\UTFT_Demo_128x128_Serial.ino
文件 4574 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\UTFT_Font_128x128_Serial\QDtech_Demo_128x128_Serial_ST7735\QDtech_Demo_128x128_Serial_ST7735.ino
文件 33037 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\安装库\UTFT\DefaultFonts.c
文件 9554 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\安装库\UTFT\examples\Arduino\UTFT_Bitmap\icon.c
文件 9551 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\安装库\UTFT\examples\Arduino\UTFT_Bitmap\info.c
文件 9549 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\安装库\UTFT\examples\Arduino\UTFT_Bitmap\tux.c
文件 1561 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\安装库\UTFT\examples\Arduino\UTFT_Bitmap\UTFT_Bitmap.pde
文件 9584 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\安装库\UTFT\examples\Arduino\UTFT_Bitmap_128x128\icon1.c
文件 9585 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\安装库\UTFT\examples\Arduino\UTFT_Bitmap_128x128\icon2.c
文件 37812 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\安装库\UTFT\examples\Arduino\UTFT_Bitmap_128x128\tux.c
文件 1178 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\安装库\UTFT\examples\Arduino\UTFT_Bitmap_128x128\UTFT_Bitmap_128x128.pde
文件 7106 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\安装库\UTFT\examples\Arduino\UTFT_Demo_128x128_Serial\UTFT_Demo_128x128_Serial.pde
文件 6883 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\安装库\UTFT\examples\Arduino\UTFT_Demo_160x128_Serial\UTFT_Demo_160x128_Serial.pde
文件 7085 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\安装库\UTFT\examples\Arduino\UTFT_Demo_220x176\UTFT_Demo_220x176.pde
文件 6899 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\安装库\UTFT\examples\Arduino\UTFT_Demo_220x176_Serial\UTFT_Demo_220x176_Serial.pde
文件 7122 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\安装库\UTFT\examples\Arduino\UTFT_Demo_320x240\UTFT_Demo_320x240.pde
文件 7161 2014-11-12 12:15 MCUDEV_TFT_1.44吋_液晶屏(例程文件)\1.44 inch Arduino Serial_ST7735\安装库\UTFT\examples\Arduino\UTFT_Demo_400x240\UTFT_Demo_400x240.pde
............此处省略2595个文件信息
相关资源
- ArduinoLibraries库函数大全
- Arduino技术指南
- Arduino高级开发权威指南原书第2版
- arduino开发实战机器人卷 光盘源码
- Building Arduino Projects for the Internet of
- 四足机器人源码
- Arduino UNO R3+MSGEQ7+RGB灯带.zip
- esp8266 V2.5.2--arduino IDE添加esp8266开发板
- arduino1.0.1中文版
- Arduino编程指南-75个智能硬件程序设计
- Arduino面包板连线绘图软件
- Arduino IDE for esp 8266开发版最新官方安
- 物联网智能家居平台DIY:ARDUINO 物联网
- Arduino六自由度总线机械臂组装,控制
- 按键控制步进电机正反转
- Arduino 中文资料 pdf
- labview温湿度报警器
- arduino激光雕刻机
- 35个ARDUINO制作项目
- Arduino+ESP8266库文件
- solidworks电路板三维,包含arduino2560、
- 智能电子秤arduino+hx711+DS1302+dh11+lcd16
- 电赛F题纸张计数显示装置全套资料打
- esp8266-2.7.2 离线安装包.zip
- fritzing软件,解压可直接运行,win64
- UARM开源整理.rar
- Arduino程序设计基础pdf
- arduino案例实战李永华
- 《Arduino与LabVIEW开发实战》PDF 电子书
- ARDUINO程序设计基础和Arduino权威指南中
评论
共有 条评论