Replies: 2 comments 7 replies
-
Hi @schreibfaul1 Wolle, I'm trying to run your ESP32_ARDUINO_ESPIDF project on PlatformIO, but I can't overcome the following error with NetworkClient.h missing. Can you please help.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
This is a file from the framework. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm constantly getting an error related to NetworkClient.h when trying to compile my project. I can't seem to fix it.
#include <Arduino.h>
#include <LovyanGFX.hpp>
#include <WiFi.h>
#include <RotaryEncoder.h>
#include "Audio.h"
// Konfiguracja WiFi
const char* ssid = "Orange_Swiatlowod_2700";
const char* password = "ArWmup7F3qdLNMUjo5";
// Konfiguracja wyświetlacza ST7796
class LGFX : public lgfx::LGFX_Device {
lgfx::Panel_ST7796 _panel_instance;
lgfx::Bus_SPI _bus_instance;
lgfx::Light_PWM _light_instance;
public:
LGFX(void) {
{
auto cfg = _bus_instance.config();
cfg.spi_host = SPI3_HOST;
cfg.spi_mode = 0;
cfg.freq_write = 40000000;
cfg.freq_read = 16000000;
cfg.spi_3wire = false;
cfg.use_lock = true;
cfg.dma_channel = 1;
cfg.pin_sclk = 12;
cfg.pin_mosi = 11;
cfg.pin_miso = 13;
cfg.pin_dc = 7;
};
LGFX tft;
// Konfiguracja enkodera
#define ENCODER_S1_PIN 16
#define ENCODER_S2_PIN 17
#define ENCODER_KEY_PIN 18
RotaryEncoder encoder(ENCODER_S1_PIN, ENCODER_S2_PIN, RotaryEncoder::LatchMode::FOUR3);
// Konfiguracja audio
Audio audio;
// Zmienne globalne
int lastEncoderPos = 0;
bool lastButtonState = false;
unsigned long lastButtonPress = 0;
int volumeLevel = 50; // Początkowa głośność (0-100)
bool isPlaying = false;
void IRAM_ATTR checkEncoder() {
encoder.tick();
}
void audioInfo(const char *info) {
Serial.print("info: "); Serial.println(info);
}
void setup() {
Serial.begin(115200);
}
void drawUI() {
tft.fillScreen(TFT_BLACK);
}
void drawVolumeBar() {
// Tło paska głośności
tft.fillRect(10, 130, 300, 20, TFT_DARKGREY);
}
void loop() {
// Obsługa enkodera
encoder.tick();
int newPos = encoder.getPosition();
}
[env:esp32s3]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
monitor_speed = 115200
lib_deps =
https://github.com/lovyan03/LovyanGFX.git
https://github.com/mathertel/RotaryEncoder.git
https://github.com/schreibfaul1/ESP32-audioI2S.git
build_flags =
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
-DAUDIO_NO_SD_FS ;
lib_ldf_mode = deep+
Beta Was this translation helpful? Give feedback.
All reactions