You specify that addresses are to be given on the range [1,512], yet you use them to directly index into an array of length 512. Unsurprisingly, trying to set channel 512 raises a IndexError.
I would PR but the change it so trivial it would take me more time to fork this repo than for you to just fix it.
You specify that addresses are to be given on the range [1,512], yet you use them to directly index into an array of length 512. Unsurprisingly, trying to set channel 512 raises a IndexError.
I would PR but the change it so trivial it would take me more time to fork this repo than for you to just fix it.