AgentSkillsCN

Tutorials

教程

SKILL.md

Tutorials

Step-by-step project tutorials to learn tscircuit

Overview

Hands-on tutorials to help you learn tscircuit by building real projects.

Tutorial Index

TutorialDescription
Building a Simple USB FlashlightBuild a USB-powered LED
Building an LED MatrixLED array project
Build a Custom KeyboardKeyboard PCB
Pi Hats: Simple Buzzer HatRaspberry Pi HAT

USB Flashlight Tutorial

Build a simple USB-powered LED board.

tsx
import React from "react"
import { board, resistor, led, trace } from "tscircuit"

export default () => (
  <board width="20mm" height="10mm">
    <resistor
      name="R1"
      resistance="220"
      footprint="0603"
      pcbX={-3}
    />
    <led
      name="LED1"
      footprint="0805"
      color="red"
      pcbX={3}
    />
    <trace from=".R1 > .pin1" to=".LED1 > .pin1" />
    <trace from=".R1 > .pin2" to=".LED1 > .pin2" />
  </board>
)

Related Skills

SkillDescription
Getting StartedFundamentals
ComponentsComponent reference
CLIBuild commands