Would appreciate if someone can guide me on this because I am currently in a rush to finish the project, but the hardware portion of this is setting me back as I dont have enough experience with it.
def test_all_color(self, r1, g1, b1, r2, g2, b2, duration=2):
“”“Fill panel with solid color”“”
print(f"Testing color R1={r1},G1={g1},B1={b1}, R2={r2},G2={g2},B2={b2}")
start_time = time.time()
while time.time() - start_time < duration:
for row in range(PANEL_HEIGHT // 2):
self.set_address(row)
# Shift out data for entire row
for col in range(PANEL_WIDTH):
self.set_rgb(r1, g1, b1, r2, g2, b2)
self.clock_pulse()
self.latch_data()
self.enable_output(True)
time.sleep(0.001) # Brief display time
self.enable_output(False)
nothing seems to happen, when I try the test_all_color function. What are the ways I can troubleshoot this?