Add some basic classes

This commit is contained in:
Konstantin Lampalzer 2021-01-15 21:51:17 +01:00
parent a482a80d4a
commit e571a7c97e
No known key found for this signature in database
GPG key ID: 9A60A522835A2AD9
9 changed files with 263 additions and 11 deletions

View file

@ -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)