Unicorn pHat coordinates out on odd rows


#1

Hi

Just downloaded the latest version of Raspian Stretch onto a Pi Zero W and installed the unicorn phat. Oddly it looks like the coordinate calculations are out. So if I run the flash example from the tutorial I get a segmentation fault.

If I change the code so that it only references the first column I end up with:
Row 0 - first LED lit
Row 1 - last LED lit
Row 2 - first LED lit
Row 3 - last LED lit

Any value above 0 for the column where the row is 2 or 4 causes a segmentation fault.

It’s almost like it’s doing the calculations for the position incorrectly.

Anyone else seen this?

Steve