数码之家

 找回密码
 立即注册

QQ登录

只需一步,快速开始

微信登录

微信扫一扫,快速登录

搜索
查看: 12572|回复: 16

[Arduino] ESP8266直驱TFT屏幕显示JPEG图片

[复制链接]
发表于 2020-4-12 00:37:55 来自手机浏览器 | 显示全部楼层
这个没搞过spi屏幕 但是看micropython是有个硬件spi接口的 80mhz啊

而arduino croe和micropython是同源的啊 ardunio应该也有类似的接口吧

micropyhton下的引用是hspi...

Hardware SPI bus
The hardware SPI is faster (up to 80Mhz), but only works on following pins: MISO is GPIO12, MOSI is GPIO13, and SCK is GPIO14. It has the same methods as the bitbanging SPI class above, except for the pin parameters for the constructor and init (as those are fixed):
回复 支持 反对

使用道具 举报

发表于 2020-4-12 00:46:59 来自手机浏览器 | 显示全部楼层
arduino也是有这个东西的


SPI
SPI library supports the entire Arduino SPI API including transactions, including setting phase (CPHA). Setting the Clock polarity (CPOL) is not supported, yet (SPI_MODE2 and SPI_MODE3 not working).

The usual SPI pins are:

MOSI = GPIO13
MISO = GPIO12
SCLK = GPIO14
There’s an extended mode where you can swap the normal pins to the SPI0 hardware pins. This is enabled by calling SPI.pins(6, 7, 8, 0) before the call to SPI.begin(). The pins would change to:

MOSI = SD1
MISO = SD0
SCLK = CLK
HWCS = GPIO0
This mode shares the SPI pins with the controller that reads the program code from flash and is controlled by a hardware arbiter (the flash has always higher priority). For this mode the CS will be controlled by hardware as you can’t handle the CS line with a GPIO, you never actually know when the arbiter is going to grant you access to the bus so you must let it handle CS automatically.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 微信登录

本版积分规则

APP|手机版|小黑屋|关于我们|联系我们|法律条款|技术知识分享平台

闽公网安备35020502000485号

闽ICP备2021002735号-2

GMT+8, 2025-7-14 13:24 , Processed in 0.124801 second(s), 10 queries , Redis On.

Powered by Discuz!

© 2006-2025 MyDigit.Net

快速回复 返回顶部 返回列表