Tutorials
Step-by-step project tutorials to learn tscircuit
Overview
Hands-on tutorials to help you learn tscircuit by building real projects.
Tutorial Index
| Tutorial | Description |
|---|---|
| Building a Simple USB Flashlight | Build a USB-powered LED |
| Building an LED Matrix | LED array project |
| Build a Custom Keyboard | Keyboard PCB |
| Pi Hats: Simple Buzzer Hat | Raspberry 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
| Skill | Description |
|---|---|
| Getting Started | Fundamentals |
| Components | Component reference |
| CLI | Build commands |