Код ошибки:
Arduino: 1.8.13 (Windows 10), Плата:"Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 921600"
In file included from C:\Users\shits\Desktop\Matrix\Clock\Clock.ino:2:
C:\Users\shits\Documents\Arduino\libraries\ESP8266HttpClient-master/SerialResponse.h:15:10: fatal error: Delay.h: No such file or directory
15 | #include <Delay.h>
| ^~~~~~~~~
compilation terminated.
exit status 1
Ошибка компиляции для платы Generic ESP8266 Module.
Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
"Показать подробный вывод во время компиляции"
Код(Неполный из-за моих "любимых" ограничений):
#include <SerialResponse.h>
/**
* Часы и информер погоды на матричном дисплее 16x32
*
* Контроллер ESP8266F (4Мбайт)
* Графический экран 16x32 на 8 матрицах MAX8219
*
* Copyright (C) 2016 Алексей Шихарбеев
* http://samopal.pro
*/
#include <arduino.h>
#include <SerialESP8266wifi.h>
#include <WiFiClient.h>
#include <ESP8266HttpClient.h>
#include <WiFiUdp.h>
#include <SPI.h>
// https://github.com/adafruit/Adafruit-GFX-Library
#include <Adafruit_GFX.h>
// https://github.com/markruys/arduino-Max72xxPanel
#include <Max72xxPanel.h>
https://github.com/bblanchon/ArduinoJson
#include <ArduinoJson.h>
const unsigned char logo2 [] PROGMEM = {
0xff, 0xff, 0xdf, 0xfd, 0xcf, 0xf9, 0xc7, 0xf1, 0xc0, 0x01, 0xe0, 0x03, 0xe0, 0x03, 0xc2, 0x11,
0xc7, 0x39, 0xc2, 0x11, 0x80, 0x01, 0x00, 0xc1, 0x00, 0x03, 0x00, 0x03, 0x00, 0x07, 0x00, 0x0f };
const unsigned char wifi_icon [] PROGMEM = {0x07, 0xfb, 0xfd, 0x1e, 0xee, 0xf6, 0x36, 0xb6 };
const unsigned char digit0 [] PROGMEM = { 0x83,0x01,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x39,0x01,0x83 };
const unsigned char digit1 [] PROGMEM = { 0xF7,0xE7,0xC7,0x87,0xE7,0xE7,0xE7,0xE7,0xE7,0xE7,0xE7,0xE7,0xE7,0x81 };
const unsigned char digit2 [] PROGMEM = { 0x83,0x01,0x39,0x39,0xF9,0xF9,0xF3,0xE3,0xC7,0x8F,0x1F,0x3F,0x01,0x01 };
const unsigned char digit3 [] PROGMEM = { 0x83,0x01,0x39,0xF9,0xF9,0xF9,0xE3,0xE3,0xF9,0xF9,0xF9,0x39,0x01,0x83 };
const unsigned char digit4 [] PROGMEM = { 0xF3,0xE3,0xC3,0xC3,0x93,0x93,0x33,0x31,0x01,0x01,0xF3,0xF3,0xF3,0xF3 };
const unsigned char digit5 [] PROGMEM = { 0x01,0x01,0x3F,0x3F,0x3F,0x03,0x01,0xF9,0xF9,0xF9,0xF9,0x39,0x01,0x83 };
const unsigned char digit6 [] PROGMEM = { 0x83,0x01,0x39,0x3F,0x3F,0x03,0x01,0x39,0x39,0x39,0x39,0x39,0x01,0x83};
const unsigned char digit7 [] PROGMEM = { 0x01,0x01,0xF9,0xF9,0xF9,0xF1,0xF3,0xE3,0xE7,0xCF,0xCF,0x9F,0x9F,0x9F };
const unsigned char digit8 [] PROGMEM = { 0x83,0x01,0x39,0x39,0x39,0x83,0x83,0x39,0x39,0x39,0x39,0x39,0x01,0x83 };
const unsigned char digit9 [] PROGMEM = { 0x83,0x01,0x39,0x39,0x39,0x39,0x39,0x01,0x81,0xF9,0xF9,0x39,0x01,0x83 };
// Параметры доступа к WiFi
const char W_SSID[] = "DIR-620";
const char W_PASS[] = "irina5540114";
// Параметры погодного сервера
String W_URL = "http://api.openweathermap.org/data/2.5/weather";
//IPPID. Получить бесплатно: http://openweathermap.org/appid#get
String W_API = "4f790e3aa94b6b8166841333524c78d3";
// Код города перми на сервере openweathermap.org
// Москва = 524901
// Остальные города можно посмотреть http://bulk.openweathermap.org/sample/city.list.json.gz
String W_ID = "511196";
String W_NAME = "В Перми ";
WiFiUDP udp;
const int NTP_PACKET_SIZE = 48;
byte packetBuffer[ NTP_PACKET_SIZE];
const char NTP_SERVER[] = "0.ru.pool.ntp.org";
int TZ = 5;//Таймзона для Перми
uint32_t NTP_TIMEOUT = 600000; //10 минут
int pinCS = 5; // Attach CS to this pin, DIN to MOSI and CLK to SCK (cf http://arduino.cc/en/Reference/SPI )
int numberOfHorizontalDisplays = 4;
int numberOfVerticalDisplays = 1;
Max72xxPanel matrix = Max72xxPanel(pinCS, numberOfHorizontalDisplays, numberOfVerticalDisplays);
String tape = "";
int wait = 20; // In milliseconds
int spacer = 1;
int width = 5 + spacer; // The font width is 5 pixels
uint32_t ms, ms0=0, ms1=0, ms2=0, ms3=0, ms_mode=0;
uint32_t tm = 0;
uint32_t t_cur = 0;
long t_correct = 0;
bool pp = false;
int mode = 0;
void setup() {
Serial.begin(115200);
// Настройка дисплея
matrix.setIntensity(7); // Use a value between 0 and 15 for brightness
// Порядок матриц
// Ориентация каждой матрицы
matrix.setRotation(0, 1); // The first display is position upside down
matrix.setRotation(1, 1); // The first display is position upside down
matrix.setRotation(2, 1); // The first display is position upside down
matrix.setRotation(3, 1); // The first display is position upside down
matrix.fillScreen(LOW);
matrix.drawBitmap(0, 0, logo2, 16, 16, 0, 1);
matrix.write();
delay(5000);
// Содиняемся с WiFi
Serial.print("\nConnecting to ");
Serial.println(W_SSID);
WiFi.begin(W_SSID, W_PASS);
for (int i=0;WiFi.status() != WL_CONNECTED&&i<150; i++) {
Serial.print(".");
// Минаем значком WiFi
matrix.drawBitmap(20, 4, wifi_icon, 8, 8, 0, 1);
matrix.write();
delay(500);
matrix.fillRect(20, 4, 8, 8, LOW);
matrix.write();
delay(500);
}
/*
// Содиняемся с WiFi
}
Перед загрузкой Flash нажал.