Skip to content

feat: add LED letter display tutorial using @tscircuit/alphabet#674

Closed
q404365631 wants to merge 2 commits into
tscircuit:mainfrom
q404365631:led-letter-tutorial
Closed

feat: add LED letter display tutorial using @tscircuit/alphabet#674
q404365631 wants to merge 2 commits into
tscircuit:mainfrom
q404365631:led-letter-tutorial

Conversation

@q404365631
Copy link
Copy Markdown

Summary

Adds a tutorial for drawing letters with LEDs on a PCB using the @tscircuit/alphabet library.

Addresses tscircuit/docs-old#50

What's included

  • Reusable LedLetter component that displays any capital letter (A-Z) using LEDs
  • Uses @tscircuit/alphabet library's lineAlphabet data for letter stroke coordinates
  • Mathematical LED placement — automatically calculates LED positions along each letter stroke based on segment length
  • Current-limiting resistors — 330Ω resistor for each LED (power → resistor → LED → GND)
  • 0603 LED + 0402 resistor SMD footprints
  • Multi-letter display example — shows T, S, C letters side by side
  • Customization guide — color, scale, footprint, resistance options

Tutorial structure

  1. Overview with full circuit preview
  2. The @tscircuit/alphabet library introduction
  3. Placing LEDs along letter strokes
  4. Adding current-limiting resistors
  5. The complete LedLetter component (with Props table)
  6. Displaying multiple letters
  7. Customizing your design

Implementation highlights

  • Y-axis flip: lineAlphabet uses SVG coordinates (Y-down), PCB uses electronics coordinates (Y-up), handled by pcbY + (0.5 - y) * scale
  • Automatic LED density: Math.max(1, Math.round(segLen * scale / 3)) LEDs per stroke segment
  • namePrefix prop prevents naming collisions in multi-letter circuits
  • Schematic grid layout for clean visualization

/claim #50

q404365631 added 2 commits May 28, 2026 14:21
Add a comprehensive tutorial for building an ESP32-WROOM-32 minimum system
circuit with power supply (USB-C + AMS1117-3.3 LDO), decoupling capacitors,
reset/boot mode circuits, and status LED.

Closes tscircuit/docs-old#47

/claim tscircuit#47
Create a tutorial for drawing letters with LEDs on a PCB using the
@tscircuit/alphabet library. Includes a reusable LedLetter component
that supports A-Z, automatic LED placement along letter strokes,
current-limiting resistors, and multi-letter display examples.

Addresses tscircuit/docs-old#50

/claim tscircuit#50
@vercel
Copy link
Copy Markdown

vercel Bot commented May 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment May 28, 2026 1:36pm

Request Review

@q404365631
Copy link
Copy Markdown
Author

Hi! This PR has been open for a while. Could a maintainer please review? This addresses a bounty from tscircuit/docs-old. Thanks!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 3, 2026

This PR was closed because it has been inactive for 1 day since being marked as stale.

@github-actions github-actions Bot closed this Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant