mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-25 12:14:33 +00:00
(Phil) Added a driver for the LTC1710. The LTC1710 is a very simple dual
switch. It can switch two devices which each consume 300mA at 5V (or less). This is good for fans, lights, or into relays for heftier stuff. Here's what the usage looks like: [root@penn sensors]# ls ltc1710-i2c-1-58/* ltc1710-i2c-1-58/switch1 ltc1710-i2c-1-58/switch2 [root@penn sensors]# cat ltc1710-i2c-1-58/* 0 0 [root@penn sensors]# echo "1" > ltc1710-i2c-1-58/switch2 (blue LED turned on) [root@penn sensors]# cat ltc1710-i2c-1-58/* 0 1 One problem with the device: It doesn't support reads. It ignores any read transactions, so even detection with a read won't work. This also means that the status of the switches has to be remembered and can't be polled. As simple as this device is, it is one of the few which actually allows the computer to send signals OUT into the world to control something. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@155 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
ff2c35a40b
commit
e4051fec67
6 files changed
+724
-2
No files matched your search
+1
-1
@@ -28,7 +28,7 @@ SRCTARGETS := $(MODULE_DIR)/smbus.o $(MODULE_DIR)/piix4.o $(MODULE_DIR)/isa.o \
|
||||
$(MODULE_DIR)/i2c-proc.o $(MODULE_DIR)/gl518sm.o \
|
||||
$(MODULE_DIR)/eeprom.o $(MODULE_DIR)/w83781d.o \
|
||||
$(MODULE_DIR)/lm80.o $(MODULE_DIR)/adm1021.o \
|
||||
$(MODULE_DIR)/adm9240.o
|
||||
$(MODULE_DIR)/adm9240.o $(MODULE_DIR)/ltc1710.o
|
||||
|
||||
SRCHEADERFILES := $(MODULE_DIR)/sensors.h $(MODULE_DIR)/isa.h \
|
||||
$(MODULE_DIR)/smbus.h
|
||||
|
||||
Reference in new issue
Block a user