• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jandelgado / jled / 29204952844
98%

Build:
DEFAULT BRANCH: master
Ran 12 Jul 2026 07:01PM UTC
Jobs 1
Files 10
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Jul 2026 07:00PM UTC coverage: 97.717% (-0.9%) from 98.637%
29204952844

push

github

web-flow
feature: JLed lifecycle events (#173)

Track the lifecycle of a JLed object

Update() now returns UpdateResult, which the caller can be act
on, depending on the phase transition a JLed object goes through.
E.g. we can now turn off a LED when it enteres the delay-after
phase by calling the, now user callable, WriteRaw() method.

Example:
```cpp
	ledGr.Update();
	ledBl.Update().OnStart([](JLedHD* l) { Serial.println("LC: OnStart - first Update"); count = 0;})
		.OnActive([&](JLedHD* l) { Serial.println("LC: OnActive - first output"); })
		.OnRepeatStart([](JLedHD* l) {
				count++;
				Serial.print("LC: OnRepeatStart - count=");
				Serial.println(count);
				ledGr.Off();
		 })
		.OnEnterDelayAfter([](JLedHD* l) { Serial.println("LC: OnEnterDelayAfter - entering delay after"); ledGr.On();})
		.OnDone([](JLedHD* l) { Serial.println("LC: OnDone"); l->Stop(); ledGr.Stop(); });
```

Breaking change:

The optional out parameter in `Update(int *pLast)` was removed, the last written brightness value
can now be obtained using the `UpdateResult` object returned by `Update()`:

```cpp
// before
int16_t lastVal = -1;
led.Update(&lastVal);

// after
auto r = led.Update();
if (r.HasBrightness()) {
    auto lastVal = r.Brightness();
}
```

138 of 152 branches covered (90.79%)

Branch coverage included in aggregate %.

78 of 78 new or added lines in 2 files covered. (100.0%)

504 of 505 relevant lines covered (99.8%)

734.56 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29204952844.1 12 Jul 2026 07:01PM UTC 10
97.72
GitHub Action Run
Source Files on build 29204952844
  • Tree
  • List 10
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #29204952844
  • 0f34f947 on github
  • Prev Build on master (#29048188939)
  • Next Build on master (#29652215077)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc