my $data = \[ $cmd ]; # Create an array reference for a single comman +d byte
should be
my $data = [ $cmd ]; # Create an array reference for a single command + byte
You were sending a reference to a reference to an array :(
In reply to Re^2: ST7789V2 LCD Controller
by tybalt89
in thread ST7789V2 LCD Controller
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |