Posts by JohninNL
-
-
-
Hi everyone,
I have used 2 LED strips next to my 4k beamers strip with a diffuser channel and one on top above my screen facing the wall. However I'm struggling how to configure my LED layout so that LED 0 is bottom left and that it wraps clock wise around the screen with 149 leds both left and right and 150 at the top with no leds at the bottom.Does anyone have experience with this? I tried the offset LED that made led 0 correct, but my top LED strip seemed incorrect (numbering seems to go counterclockwise.
I even tried to create a custom LED Map generator:Code
Display Moreimport json def generate_led_map(left_leds, top_leds, right_leds): total_leds = left_leds + top_leds + right_leds led_map = [] # Left side (bottom to top) for i in range(left_leds): led_map.append({ "hmax": 0.0000, "hmin": 0.0000, "vmax": round(1 - i / left_leds, 4), "vmin": round(1 - (i + 1) / left_leds, 4), "group": 0 }) # Top side (left to right) for i in range(top_leds): led_map.append({ "hmax": round((i + 1) / top_leds, 4), "hmin": round(i / top_leds, 4), "vmax": 0.0000, "vmin": 0.0000, "group": 0 }) # Right side (top to bottom) for i in range(right_leds): led_map.append({ "hmax": 1.0000, "hmin": 1.0000, "vmax": round(i / right_leds, 4), "vmin": round((i + 1) / right_leds, 4), "group": 0 }) return led_map # Generate the LED map led_map = generate_led_map(149, 150, 149) # Save the LED map to a JSON file with open('led_map.json', 'w') as f: json.dump(led_map, f, indent=2) print(f"LED map with {len(led_map)} LEDs has been generated and saved to led_map.json")Which outputs attached led_map which I struggle to apply.
