mirror of
https://github.com/clockworkpi/WiringPi.git
synced 2026-03-22 03:42:46 +01:00
Reverted gpio readall to older version - new version is gpio nreadall
fixed the max5322 code.
This commit is contained in:
@@ -44,8 +44,8 @@ static void myAnalogWrite (struct wiringPiNodeStruct *node, int pin, int value)
|
||||
else
|
||||
chanBits = 0b01010000 ;
|
||||
|
||||
chanBits |= ((value >> 4) & 0x0F) ;
|
||||
dataBits = ((value << 4) & 0xF0) ;
|
||||
chanBits |= ((value >> 12) & 0x0F) ;
|
||||
dataBits = ((value ) & 0xFF) ;
|
||||
|
||||
spiData [0] = chanBits ;
|
||||
spiData [1] = dataBits ;
|
||||
|
||||
Reference in New Issue
Block a user