aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/sx1509.py
Commit message (Collapse)AuthorAgeFilesLines
* Run black on all first party python codeTomasz Kramkowski2025-08-061-48/+103
|
* sx1509: drop i2c_modify_bitsTimofey Titovets2024-09-221-7/+5
| | | | | | | According to the datasheet default value is 0000 0000 We do not modify them in other places. Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* mcu: Remove support for set_pwm() cycle_time parameterKevin O'Connor2024-01-231-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Remove support for "static" pinsKevin O'Connor2024-01-231-10/+2
| | | | | | | | | Update static_digital_output.py to directly configure static digital pins. There are no other users of "static" pins, so remove that support from mcu.py, replicape.py, and sx1509.py. This simplifies the low-level pin handling code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Add support for changing cycle_time in set_pwm()Kevin O'Connor2020-09-261-2/+2
| | | | | Signed-off-by: Guy Shapira <gayuha@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* extras: Use "from . import module" for relative importsKevin O'Connor2020-06-151-1/+1
| | | | | | Use alternate import syntax to improve Python3 compatibility. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* sx1509: Improve Python3 compatibilityKevin O'Connor2020-06-151-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* 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>