so i just did this and it worked. i’m guessing that you may have placed your lights in the wrong spot of the code. typically scripts for grids will have two functions that determine 1) how norns should respond when it feels you push a button and 2) how the grid should look at any given time.
this specific script actually combines those two things into one function (
grid_key at line 197). if you put the LED instructions in there (you were right to change it to
grid_device btw, that also needs to happen), and eliminate the redundant
grid_device:refresh(), it should work after that function is called (meaning after you press a grid button once to trigger this function for the first time).*
if you put this somewhere else or with a different name than
grid_device, it seems like it might look for some other grid to refresh/light up or just not know what you’re talking about.
*you might notice that technically this is telling the grid to light up all those lights every time you press a button, which is not super efficient. doesn’t seem to make a difference in this context but this is why most scripts with big grid interfaces separate drawing and interacting functions.
hope that makes some sense!