Dokumentation um Webinterface, Einstellungen und OTA-Update erweitert
build_release.yaml / Build (push) Successful in 6m19s
build_release.yaml / Release (push) Successful in 19s

This commit is contained in:
FCS committed 2026-08-28 18:07:57 +02:00
1 parent 1014df8ec7
commit 0d2ff764ea
13 files changed
+531 -85

No files matched your search

+3 -10
View File
@@ -8,15 +8,14 @@ void init_servo(void)
{
myservo.setPeriodHertz(50);
myservo.attach(servoPin);
set_tacho(0, 70, 150);
}
void set_tacho(int speed, int speed_min, int speed_max)
{
int val = map(speed, -25, 220, 0, 155);
#ifdef DEBUG
Serial.print("Tacho Mapping: ")
Serial.println(val);
Serial.print("Tacho Mapping: ");
Serial.println(val);
#endif
myservo.write(val);
pixels.clear();
@@ -72,11 +71,5 @@ void init_pixel(void)
int setoffsetpixel(int pixel)
{
int newpixel;
newpixel = pixel + pixeloffset;
if (newpixel >= NUMPIXELS)
{
newpixel = newpixel - NUMPIXELS;
}
return newpixel;
return (pixel + pixeloffset + NUMPIXELS) % NUMPIXELS;
}