Solved SX1509 on Maestro, does it work?
-
I have tried to set up SX1509 on a Maestro, but I don’t get it to work.
Is it even possible?I have set the address
0x71
And as the SX1509 has 10k pull up resistors I tried to lower the value by switching 10k in parallel.
They now are at around 5kPin assignment in config.g (RRF3.01b)
M950 P1 C"sx1509b.0"
M950 P2 C"sx1509b.1"
M950 P3 C"sx1509b.2"Tested
Seams like working, but there is no reaction
M122
I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0I am running out of ideas....
-
The firmware build for the Maestro doesn't include the SX1509B driver. You can use M260 to access the SX1509.
-
I finally have managed to get it run with M260.
As the parameters for writing to the data registers aren’t obvious I post my code her for one who is also struggling with that.
As well it was necessary to calculate the decimal values for some register data.The code enables PWM for both banks and writes values for the pins 0-3.
Sx150 9 and LEDs are wired in sink current mode.
Test pins 0-3 sx1509.g