https://github.com/pawelgoj/rgb_led_color_change
Simple program written in MicroPython for LED RGB color change. Works with raspberry pi pico (RP2040)
https://github.com/pawelgoj/rgb_led_color_change
led led-rgb microcontroller micropython python raspberry-pi-pico rp2040
Last synced: about 1 month ago
JSON representation
Simple program written in MicroPython for LED RGB color change. Works with raspberry pi pico (RP2040)
- Host: GitHub
- URL: https://github.com/pawelgoj/rgb_led_color_change
- Owner: pawelgoj
- Created: 2022-11-29T20:57:11.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-30T15:28:22.000Z (over 2 years ago)
- Last Synced: 2025-01-27T16:47:46.764Z (3 months ago)
- Topics: led, led-rgb, microcontroller, micropython, python, raspberry-pi-pico, rp2040
- Language: Python
- Homepage:
- Size: 21.9 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Simple program written in MicroPython for LED RGB color change
## Tools
1. MicroPython
2. Microcontroller: raspberry pi pico (RP2040)## Video with an example of operating the device
https://user-images.githubusercontent.com/71873238/204652224-ee3208d4-c521-40b6-9d87-61d3b26293b4.mp4
## Circuit diagram

You can change resistors to fit your diode.
## Operation of buttons and potentiometer
1. **Button ON/OFF** - Turn on the LED/ Turn down.
2. **Button change color/Save**:
- **Press and release** - change color component: red, green and blue
- **Press and hold 3 seconds** - save color
3. **Potentiometer** - fit intensity of color componentThe device remembers the saved color after turning off the power.
## Scripts
1. **main.py** - file with program
2. **delete_all_files_from_pico.py** - script removing all files from raspberry pi pico