aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/mcp4451.py
Commit message (Collapse)AuthorAgeFilesLines
* Run black on all first party python codeTomasz Kramkowski2025-08-061-6/+8
|
* 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>
* i2ccmds: Pass the i2c address as a 7-bit number (0-127)Kevin O'Connor2019-01-071-0/+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>
* mcp4451: Minor update - remove unnecessary mcu importKevin O'Connor2018-11-241-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcp4451: Use bus.py helper code for i2cKevin O'Connor2018-11-241-22/+10
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* lpc176x: Convert i2c code to use standard i2ccmds.cKevin O'Connor2018-11-141-3/+10
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcp4451: Add initial support for programming the mcp4451 on lpc176xKevin O'Connor2018-06-291-0/+32
Add support for programming smoothieboard current. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>