MCPcopy Create free account
hub / github.com/FastLED/FastLED / print_chipset_summary

Function print_chipset_summary

ci/test_led_timing_conversion.py:392–410  ·  view source on GitHub ↗

Print a summary of all tested chipsets.

()

Source from the content-addressed store, hash-verified

390
391
392def print_chipset_summary() -> None:
393 """Print a summary of all tested chipsets."""
394 print("\n" + "=" * 70)
395 print("CHIPSET TIMING VALIDATION SUMMARY")
396 print("=" * 70)
397 print(f"\nTotal Chipsets Tested: {len(FASTLED_CHIPSETS)}")
398 print("\nAll chipsets from src/fl/chipsets/led_timing.h:\n")
399
400 for name, (T1, T2, T3) in sorted(FASTLED_CHIPSETS.items()):
401 cycle = T1 + T2 + T3
402 freq_khz = 1000000 / cycle if cycle > 0 else 0
403 print(
404 f" {name:25s} T1={T1:4d} T2={T2:4d} T3={T3:4d} "
405 f"cycle={cycle:4d}ns ~{freq_khz:.0f}kHz"
406 )
407
408 print("\n" + "=" * 70)
409 print("All tests passed! ✓")
410 print("=" * 70 + "\n")
411
412
413def main() -> int:

Callers 1

mainFunction · 0.85

Calls 2

itemsMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected