Skip to content

FastLED3.1 - #130

Closed
peetervedic wants to merge 146 commits into
masterfrom
FastLED3.1
Closed

peetervedic wants to merge 146 commits into
masterfrom
FastLED3.1

Conversation

@peetervedic

Copy link
Copy Markdown

No description provided.

kriegsman and others added 19 commits January 3, 2015 15:52
…early as fast as the normal HSV-to-RGB conversion, and (3) it's most accurate when it's converting back to HSV from RGB colors that came from fully-saturated HSV colors to start with, e.g., CHSV( hue, 255,255)-> CRGB-> CHSV will give best results.
… to correct for a wider range of pixel counts. It's now correct roughly within a handful of seconds per hour. The exact accuracy depends on the number of pixels, what else your code is doing and how long it takes doing it, and of course, the ambient temperature. You STILL can't make an alarm clock without adding an external RTC, but you can probably do a respectable syncronization of an animation to a 5-minute pop song. Total cost of this change is 1 byte of SRAM and about 40 bytes of program space. If you want to disable clock correction to save space, #define NO_CORRECTION 1 before including FastLED.h
… the pin is attached to, vs. the arbitrary pin numbers used by arduino.
@focalintent

Copy link
Copy Markdown
Contributor

Why do you keep submitting pull requests of my own changed to my library?

@focalintent focalintent closed this Feb 2, 2015
@focalintent

Copy link
Copy Markdown
Contributor

(Ah, never mind - it seems today is the day that multiple people submitted pull requests for my own changes back into my tree)

@jar10623

jar10623 commented May 4, 2015

Copy link
Copy Markdown

now i find a solution for me with the timing problem and atmega 1284p in delay.h:

// #define NS(_NS) (_NS / (1000 / (F_CPU / 1000000L)))
#if F_CPU < 96000000
#if defined(AVR_ATmega1284P)
#define NS(_NS) ( (_NS * ( (F_CPU * 9L/10L) / 1000000L))) / 1000
#define CLKS_TO_MICROS(_CLKS) ((long)(_CLKS)) / ((F_CPU * 9L/10L) / 1000000L)
#else
#define NS(_NS) ( (_NS * (F_CPU / 1000000L))) / 1000
#define CLKS_TO_MICROS(_CLKS) ((long)(_CLKS)) / (F_CPU / 1000000L)
#endif

but now i see FastLED 3.0.3

with:

// #define NS(_NS) (_NS / (1000 / (F_CPU / 1000000L)))
#if 1 || (F_CPU < 96000000)

what is the const 1 in the or?
(F_CPU < 96000000) isn't nessesary an the #else never reached

@focalintent

Copy link
Copy Markdown
Contributor

Because I wanted to leave the rest of the code there as a reference because I may come back and re-work it. The 1|| is an effective shortcut that cuts it out, but leaves it around for me in case I come back to it.

I'm glad you have a solution for the 1284p (because of the changes to the meanings of F_CPU, and because I can't be sure that your changes won't cause problems for the other 3-wire led chipset timings, I am not going to pull it back into the library).

zackees added a commit that referenced this pull request Apr 19, 2026
Adds the first FastLED-side exercise of fbuild's native QEMU path
(fbuild test-emu), alongside the minimal standalone project it targets.

Changes:
- pyproject.toml: bump fbuild>=2.1.12 -> fbuild>=2.1.18, de-duplicate
  the repeated dep line.
- tests/fbuild_qemu_smoke/: standalone PlatformIO project (env: esp32dev
  in DIO flash mode for QEMU compat) + minimal FastLED sketch that
  prints FBUILD-QEMU-TEST-OK on successful boot.
- ci/tests/test_fbuild_qemu.py: pytest driver that runs fbuild test-emu
  and checks for the boot marker. Marked xfail(strict=False) referencing
  FastLED/fbuild#130 — the test currently fails because fbuild's CLI
  can't reach its own daemon on Windows despite /health returning 200.
  Flip to a passing assertion once #130 is fixed.
- ci/tests/README.md: add a README to satisfy the fbuild hooks'
  every-directory-has-a-README convention that propagated here while
  drafting.

Context: FastLED currently runs ESP32 QEMU only via Docker
(ci/runners/qemu_runner.py). This is the first native-fbuild QEMU
exercise from FastLED; an fbuild fix for #130 should make the xfail
flip green without any further FastLED changes needed.
zackees added a commit that referenced this pull request May 31, 2026
…r runner

fbuild 2.2.10+ hangs the daemon's /api/test-emu handler indefinitely on
the avr8js path, and once the daemon is wedged every subsequent fbuild
call (including `daemon status` / `show daemon`) also hangs — the
daemon-restart workaround from the previous commit on this branch did
not unblock it (verified on run 26701323431: the diagnostic dump itself
hung past the 30-min mark).

Switch to invoking ci.docker_utils.avr8js_docker.DockerAVR8jsRunner
directly from the workflow. That's the same code path used by local
`bash test --run uno`, and it predates the fbuild migration that
introduced #2645.

- 8-min cap on both build and emulator steps still bounds CI burn if
  the Docker image pull or run misbehaves.
- The Test sketch's serial markers ("Test setup starting" / "Test
  loop") are validated explicitly because the Docker runner only
  surfaces the emulator exit code.
- Drops the Node.js setup, npm install, fbuild daemon restart, and
  failure-diagnostic steps from the previous attempt — none of them
  are needed for the Docker path and the diagnostic ones were
  themselves hanging on the wedged daemon.

Refs #2645, FastLED/fbuild#291, #292, #130.
zackees added a commit that referenced this pull request May 31, 2026
…r runner (#2651)

fbuild 2.2.10+ hangs the daemon's /api/test-emu handler indefinitely on
the avr8js path, and once the daemon is wedged every subsequent fbuild
call (including `daemon status` / `show daemon`) also hangs — the
daemon-restart workaround from the previous commit on this branch did
not unblock it (verified on run 26701323431: the diagnostic dump itself
hung past the 30-min mark).

Switch to invoking ci.docker_utils.avr8js_docker.DockerAVR8jsRunner
directly from the workflow. That's the same code path used by local
`bash test --run uno`, and it predates the fbuild migration that
introduced #2645.

- 8-min cap on both build and emulator steps still bounds CI burn if
  the Docker image pull or run misbehaves.
- The Test sketch's serial markers ("Test setup starting" / "Test
  loop") are validated explicitly because the Docker runner only
  surfaces the emulator exit code.
- Drops the Node.js setup, npm install, fbuild daemon restart, and
  failure-diagnostic steps from the previous attempt — none of them
  are needed for the Docker path and the diagnostic ones were
  themselves hanging on the wedged daemon.

Refs #2645, FastLED/fbuild#291, #292, #130.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants