PiTop: fix the brightness control.

This commit is contained in:
sorgelig
2019-11-05 12:41:25 +08:00
parent abaa06f244
commit c0617e415f

View File

@@ -71,7 +71,7 @@ static int spi_open(int speed, int mode)
int fd ; int fd ;
mode &= 3; // Mode is 0, 1, 2 or 3 mode &= 3; // Mode is 0, 1, 2 or 3
if ((fd = open ("/dev/spidev32766.0", O_RDWR)) < 0) if ((fd = open ("/dev/spidev1.0", O_RDWR)) < 0)
{ {
printf("Unable to open SPI device: %s\n", strerror (errno)); printf("Unable to open SPI device: %s\n", strerror (errno));
return -1; return -1;