我正在使用通过 SPI 链接到 Adafruit HUZZAH的TFT 显示器 ILI9341 ,示例 skecth 提供了“graphictest”,一切正常。
// HUZZAH DEVICE Spakfun nRf52
// Violet -- 12 --> MISO <-- 12 -- Violet
// Rouge -- 3V --> LED <-- 3V3-- Orange
// Vert -- 14 --> SCK <-- 13 -- Vert
// Bleu -- 13 --> MOSI <-- 11 -- Bleu
// Blanc #-- 4 --> D/C <-- 9 -- Marron
// Bleu -- 3V --> RESET <-- 3v3-- Gris
// Blanc o-- 5 --> CS <-- 10 -- Jaune
// Noir -- GND--> GND <-- GND-- Noir
// Rouge -- 3V --> VCC <-- 3V3-- Vcc
我想用SparkFun nRF52832 Breakout做同样的事情,但草图在“tft.begin()”期间停止
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
void setup() {
Serial.begin(9600);
Serial.println("ILI9341 Test!");
tft.begin();
我还检查了标题:variant.h
/*
* SPI Interfaces
*/
#define SPI_INTERFACES_COUNT 1
#define PIN_SPI_MISO (12)
#define PIN_SPI_MOSI (11)
#define PIN_SPI_SCK (13)
static const uint8_t SS = 10 ;
static const uint8_t MOSI = PIN_SPI_MOSI ;
static const uint8_t MISO = PIN_SPI_MISO ;
static const uint8_t SCK = PIN_SPI_SCK ;
我尝试在 ILI9341 显示器上使用内置的 SD 卡插槽,HUZZAH 没问题,但 Sparkfun nRf52 的 KO。
如果你们中的一些人可以帮助我,那将是非常友好的。
谢谢。