Skip to content

FRC7902/LIT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 :)