Remote-controlled RGB mood light
Warm, cool, rainbow or breathing: cycle lighting moods from your sofa.
Shop by category
Shop all componentsThe Waveshare RP2350 1.47-inch board is a tiny RP2350 with a built-in colour IPS LCD. Waveshare's wiki gives a MicroPython demo with the LCD driver and the pin numbers for this board. This game adds one push button: the screen turns red, waits a random time, then turns green; press as fast as you can.
Tick anything you already have and the total updates.
Waveshare RP2350 1.47-inch LCD board
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB-C from a computer or phone charger.
main.pyimport time, random
from machine import Pin
from lcd_driver import LCD # name of the driver file from the Waveshare demo
lcd = LCD()
btn = Pin(15, Pin.IN, Pin.PULL_UP)
RED, GREEN, BLACK, WHITE = 0xF800, 0x07E0, 0x0000, 0xFFFF
best = None
def show(bg, *lines):
lcd.fill(bg)
for i, t in enumerate(lines):
lcd.text(t, 10, 20 + i * 16, WHITE)
lcd.show()
while True:
show(BLACK, "Press to start", "Best: %s ms" % (best or "-"))
while btn.value(): pass
time.sleep_ms(300)
show(RED, "Wait for green...")
time.sleep_ms(random.randint(1500, 4000))
if not btn.value():
show(RED, "Too early!"); time.sleep(2); continue
show(GREEN, "GO!")
t0 = time.ticks_ms()
while btn.value(): pass
ms = time.ticks_diff(time.ticks_ms(), t0)
best = ms if best is None or ms < best else best
show(BLACK, "%d ms" % ms, "Best: %d ms" % best)
time.sleep(2)
Use the file and class names from Waveshare's demo for this exact board.
Check the backlight pin in the driver; Waveshare's demo turns it on.
It is on the wrong pin or wired to 3V3 instead of GND.
Around 200-300 ms is typical for adults.
Yes, with the Earle Philhower RP2040/RP2350 core and an ST7789 library, using the pins from the wiki.
Add a second button and show who pressed first.
4 parts: Waveshare RP2350 1.47-Inch Display Development Board, Tactile Push Button Switch, Solderless Breadboard and Dupont Jumper Wires (40 pcs). On this page you can tick the parts you already have and add only the rest to your cart.
It is a beginner project and takes about 1 hour. The build on this page has 5 steps.
No. This page has the complete, tested code (main.py).
About ₹1,183 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Using a board's own LCD driver from the maker's demo; Timing in milliseconds with ticks_ms; Random delays and simple game logic.
Warm, cool, rainbow or breathing: cycle lighting moods from your sofa.
Press to roll: the pips tumble and slow down before landing on a number.
Wait for the light, hit the button: how many milliseconds can you beat?
A bright 4-digit clock that keeps time through power cuts.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.