Postagens

Mostrando postagens de novembro, 2020

Player Web Radio .ACC Esp8266

 /*   WebRadio Example   Very simple HTML app to control web streaming     Copyright (C) 2017  Earle F. Philhower, III   This program is free software: you can redistribute it and/or modify   it under the terms of the GNU General Public License as published by   the Free Software Foundation, either version 3 of the License, or   (at your option) any later version.   This program is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   GNU General Public License for more details.   You should have received a copy of the GNU General Public License   along with this program.  If not, see <http://www.gnu.org/licenses/>. */ #include <Arduino.h> #ifdef ESP32     #include <WiFi.h> #else     #include <ESP8266WiFi.h> #endif #include "AudioFileSourceICYStream.h" #include "AudioFileSourceBuffer.h" #include "AudioGeneratorMP3.

Para ouvir web radio MP3 no esp8266

 #include <Arduino.h> #ifdef ESP32 #include <WiFi.h> #else #include <ESP8266WiFi.h> #endif #include "AudioFileSourceICYStream.h" #include "AudioFileSourceBuffer.h" #include "AudioGeneratorMP3.h" #include "AudioOutputI2SNoDAC.h" // To run, set your ESP8266 build to 160MHz, update the SSID info, and upload. const char *SSID = "Pizzaria"; const char *PASSWORD = "pizzaria"; const char *URL="http://stream.ca.morow.com:8003/morow_med.mp3"; AudioGeneratorMP3 *mp3; AudioFileSourceICYStream *file; AudioFileSourceBuffer *buff; AudioOutputI2SNoDAC *out; // Called when a metadata event occurs (i.e. an ID3 tag, an ICY block, etc. void MDCallback(void *cbData, const char *type, bool isUnicode, const char *string) { const char *ptr = reinterpret_cast<const char *>(cbData); (void) isUnicode; // Punt this ball for now // Note that the type and string may be in PROGMEM, so copy them to RAM for printf char s1[32

AutoConect LIB wifimanagem esp8266 12E NodeMCU

 // LED will blink when in config mode #include <WiFiManager.h> // https://github.com/tzapu/WiFiManager //for LED status #include <Ticker.h> Ticker ticker; #ifndef LED_BUILTIN #define LED_BUILTIN 13 // ESP32 DOES NOT DEFINE LED_BUILTIN #endif int LED = LED_BUILTIN; void tick() {   //toggle state   digitalWrite(LED, !digitalRead(LED));     // set pin to the opposite state } //gets called when WiFiManager enters configuration mode void configModeCallback (WiFiManager *myWiFiManager) {   Serial.println("Entered config mode");   Serial.println(WiFi.softAPIP());   //if you used auto generated SSID, print it   Serial.println(myWiFiManager->getConfigPortalSSID());   //entered config mode, make led toggle faster   ticker.attach(0.2, tick); } void setup() {   WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP   // put your setup code here, to run once:   Serial.begin(115200);     //set led pin as output   pinMode(LED, OUTPUT);   // start ticker with 0.5

Erro Misterioso na LIB WiFiManagem - Esp8266 12E - NodeMCU

 Arduino: 1.8.13 (Windows 7), Placa:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200" C:\Program Files\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\Arduino\hardware -hardware C:\Users\Administrador\AppData\Local\Arduino15\packages -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -tools C:\Users\Administrador\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files\Arduino\libraries -libraries D:\Documentos\Arduino\libraries -fqbn=esp8266:esp8266:nodemcuv2:xtal=80,vt=flash,exception=legacy,ssl=all,eesz=4M2M,led=2,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200 -vid-pid=1A86_7523 -ide-version=10813 -build-path C:\Users\ADMINI~1\AppData\Local\Temp\arduino_build_537650 -warnings=all -build-cache C:\Users\ADMINI~1\AppData\Local\Temp\ar