https://github.com/frc7902/lit
LED module project
https://github.com/frc7902/lit
Last synced: 3 months ago
JSON representation
LED module project
- Host: GitHub
- URL: https://github.com/frc7902/lit
- Owner: FRC7902
- Created: 2024-10-03T05:46:20.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-17T17:22:01.000Z (7 months ago)
- Last Synced: 2025-01-13T20:14:30.475Z (5 months ago)
- Language: Java
- Size: 117 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **FRC 7902 LED Light Strip Program** #
This program allows the RIO to communicate with a Raspberry Pi Pico, which outputs a colour/effect to the LED strip connected to the Raspberry Pi Pico.
A command is sent in this order (do not have any spaces in the input):**1,2,3,4,5**
**1: Brightness** (from 0 - 255)
**2: Mode** (from 1 - 5)
**3: R** (Red value)
**4: G** (Green value)
**5: B** (Blue value)
# **Modes**: #
1: **Static Lights**2: **Flashing Lights**
3: **Rainbow Lights**
4: **Fading Lights**
5: **Pattern Lights** (I don't know what to properly call this one)
**NOTE:**
- Current communication protocol used: **UART**
- You can either use the C or the Arduino file. Both files are functional.
- To turn off all lights, input 0,1,0,0,0.
- Rainbow Lights are not affected by RGB values, however, you still need to input the RGB values (just put 0 for each). This ensures the buffer gets the right amount of data.
- Brightness is a W.I.P as of now.
-# **System Information** #
Microcontroller: Raspberry Pi Pico (RP2040)
Language: C / C++ (Arduino version)
Receive Pin (UART) = DIO 1
LED TX Pin = DIO 2
IRQ Pin = DIO 3
Baud rate = 300
**Thank you Davis and Arjun for all your help :)**