YAML Configuration¶
Complete reference for YAML configuration files.
Basic Structure¶
title: "Diagram Title"
board: "raspberry_pi_5" # or "raspberry_pi_zero_2w"
devices:
- type: "device_type"
name: "Device Name"
connections:
- board_pin: 1
device: "Device Name"
device_pin: "Pin Name"
show_legend: true
Supported Boards¶
raspberry_pi_5(aliases:rpi5,rpi) - Raspberry Pi 5 with 40-pin GPIO headerraspberry_pi_zero_2w(aliases:raspberry_pi_zero,pizero,zero2w,zero,rpizero) - Raspberry Pi Zero / Zero 2 W with 40-pin GPIO header
Built-in Device Types¶
PinViz includes several pre-configured device templates that you can use in your YAML files.
Sensors¶
bh1750 - BH1750 I2C ambient light sensor
📖 Datasheet
ds18b20 - DS18B20 waterproof 1-Wire temperature sensor
📖 Datasheet
LEDs¶
led - Simple LED with anode/cathode pins
📖 Raspberry Pi GPIO Documentation
ir_led_ring - IR LED ring module with control pin
📖 Product Page
I/O¶
button - Push button or switch with pull-up/pull-down configuration
📖 Raspberry Pi GPIO Documentation
Generic¶
i2c_device - Generic I2C device with standard pinout
📖 Raspberry Pi I2C Documentation
spi_device - Generic SPI device with standard pinout
📖 Raspberry Pi SPI Documentation
Listing Available Devices¶
To see all available device types with their documentation links, run:
Configuration Options¶
See the Quick Start Guide for detailed examples.
Full documentation coming soon.