aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/sx1509.py
Commit message (Collapse)AuthorAgeFilesLines
* sx1509: Minor cleanup - don't default print_time to 0Kevin O'Connor2019-06-251-1/+1
| | | | | | | It's not valid to use a print_time=0, and it isn't actually used in the sx1509 code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* sx1509: Convert code to use generic i2c bus supportKevin O'Connor2019-04-041-19/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* sx1509: Wrap code to 80 columnsKevin O'Connor2019-02-271-8/+14
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* i2ccmds: Pass the i2c address as a 7-bit number (0-127)Kevin O'Connor2019-01-071-2/+3
| | | | | | | | | | | | | | | | The sam3 i2c code and the linux code use a 7-bit i2c address, while the avr, lpc176x, and samd21 i2c code uses an 8-bit address with the least significant bit always zero. A similar issue occurred in the host code (sx1509.py and replicape.py use 7-bit addresses while uc1701.py and mcp4451.py use 8-bit addresses). Consistently use 7-bit addresses in all the code. This breaks compatibility between host and mcu software, so make a change to the config_i2c command to force users to synchronize software updates. This also breaks common Smoothieboard configs, so update the mcp4451 code to validate the i2c_address. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* sx1509: Relax restrictions on SX1509 pins (#836)Florian Heilmann2018-10-301-6/+6
| | | | | This allows SX1509 pins to be used as temperature fans and heater fans. Heaters are still disallowed. Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
* sx1509: Raise an error if a pin max_duration is not zeroKevin O'Connor2018-10-271-1/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Add SX1509 extraFlorian Heilmann2018-10-271-0/+201
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>