【发布时间】:2022-07-11 04:56:51
【问题描述】:
以下程序有效;但是,当我将以下代码粘贴在程序中时,我有太阳跟踪程序计算太阳的仰角和方位角 t 不显示。有什么建议吗?
#include <TFT_eSPI.h>
#include <SPI.h>
TFT_eSPI tft=TFT_eSPI();
int sun_azimuth;
void setup() {
tft.init();
sun_azimuth = 2 +2;
}
void loop() {
tft.fillScreen(TFT_BLACK);
tft.setRotation(1);
tft.setCursor(10,40);
tft.setTextColor(TFT_WHITE);
tft.setTextSize(4);
tft.println(String(sun_azimuth));
delay(3000);
}
【问题讨论】:
-
如果我询问不起作用的代码,我想我会分享不起作用的代码。
-
由于某种原因堆栈溢出不允许我粘贴代码