UNIFY is the branch where 4.0 is being developed. anything added to 3.x today would get left out of 4.0 unless you tell us you did it.
angus40 wrote:ESPixelStick ver.3.1 Getting 2 errors trying to compile .
Anyone else getting this ?This is a debbie downer as I cannot get this moving forward.
Any help would be great .sketch\EFUpdate.cpp: In member function 'bool EFUpdate::process(uint8_t*, size_t)': EFUpdate.cpp:68:57: error: 'U_FS' was not declared in this scope if (!Update.begin(_record.size, U_FS)) { ^ C:\Users\angus40\Documents\Arduino\ESPixelStick\ESPixelStick.ino: In function 'void setup()': ESPixelStick:155:26: error: 'class EspClass' has no member named 'getFullVersion' LOG_PORT.println(ESP.getFullVersion());
Well I have this solved . Frustrating to say the least as the issues had Zilch to do with the EspixelStick Firmware .
Solution =>
Update to the newest release of the IDE
Update Spiffs Plugin
Voila !
MartinMueller2003 wrote:UNIFY is the branch where 4.0 is being developed. anything added to 3.x today would get left out of 4.0 unless you tell us you did it.
Ah . Thanks Martin . Unfortunately my coding skills are mere hack-n-patch only .
It's great how flexible the EspixelStick is to additions without breaking things ,which I am real good at .
This is the code I have been looking for.
I have WS2812B strips 300 LEDs long. I am only adressing the first 170.
I see mention that multiple universes are possible. Sofar if I add a second it doesnt run the second strip correctly.
This is cool...
Esp32 and Servo
Here is a bare bones E1.31 sketch .
/*
All credits to :
Shelby Merrick for his E131
*/
#include <pwmWrite.h>
#include <ESPAsyncE131.h>
#include <WiFi.h>
#define UNIVERSE 1 // First DMX Universe to listen for
#define UNIVERSE_COUNT 3
#define CHANNEL_START 1
const int servoPin = 19;
uint16_t servoMinUs; // minimum servo pulse in μs (544)
uint16_t servoMaxUs; // maximum servo pulse in μs (2400)
const char ssid[] = ""; // Replace with your SSID
const char passphrase[] = ""; // Replace with your WPA2 passphrase
// ESPAsyncE131 instance with UNIVERSE_COUNT buffer slots
ESPAsyncE131 e131(UNIVERSE_COUNT);
Pwm pwm = Pwm();
void setup() {
Serial.begin(115200);
delay(10);
pwm.attachServo(19, 8, 544, 2400);
// Make sure you're in station mode
WiFi.mode(WIFI_STA);
if (passphrase != NULL)
WiFi.begin(ssid, passphrase);
else
WiFi.begin(ssid);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
}
// Choose one to begin listening for E1.31 data
//if (e131.begin(E131_UNICAST)); // Listen via Unicast
if (e131.begin(E131_MULTICAST, UNIVERSE, UNIVERSE_COUNT)); // Listen via Multicast
}
void loop(){
int val1;
// Parse a packet and update pixels
while (!e131.isEmpty()) {
e131_packet_t packet;
e131.pull(&packet); // Pull packet from ring buffer
uint16_t universe = htons(packet.universe);
if (universe == 1) {
val1 = map((packet.property_values[(CHANNEL_START + 0 )]), 0, 255, 544, 2400); // channel 1
}
if (val1 <= 255 || val1 >= 0) { //Servo 1
pwm.writeServo(19, val1);
}
}
}
