Add some basic classes
This commit is contained in:
parent
a482a80d4a
commit
e571a7c97e
9 changed files with 263 additions and 11 deletions
|
@ -44,6 +44,7 @@ class Adc:
|
|||
voltage = round(voltage, 2)
|
||||
return voltage
|
||||
|
||||
|
||||
def recvADS7830(self, channel):
|
||||
"""Select the Command data from the given provided value above"""
|
||||
COMMAND_SET = self.ADS7830_CMD | ((((channel << 2) | (channel >> 1)) & 0x07) << 4)
|
||||
|
|
Reference in a new issue