Print a summary of all tested chipsets.
()
| 390 | |
| 391 | |
| 392 | def 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 | |
| 413 | def main() -> int: |