Commit c80e79df authored by Malte Schmitz's avatar Malte Schmitz

Fix constant bit length

parent 0504b778
......@@ -18,13 +18,13 @@ print("\n\n\n\n\n")
array = "{" + ",".join([hex(p) for p in pixels]) + "}"
code = """uint32_t[{width}] = {array};
code = """uint32_t[{width}] pixels = {array};
for (int x = 0; x < {width}; x++) {{
uint32_t line = pixels[x];
for (int y = 0; y < {height}; y++) {{
uint32_t color = 0;
if (line & (1 << y)) {{
if (line & (1l << y)) {{
color = 0xFFFFFF;
}}
strip.setPixelColor(y, color);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment