Ordinateur de bord pour voiture de collection 7.1
|
DS18B20 base on onewire Because the DS18B20 is very slow (> 100 ms) the ClVar will use this sensor must be a thread. More...
Public Member Functions | |
def | __init__ (self, Name, Module=None, Voie=None) |
The constructor. More... | |
def | Read (self) |
retourne la valeur lue du capteur More... | |
Public Member Functions inherited from Capteur | |
def | __init__ (self, Name, Module, Voie) |
The constructor. More... | |
def | Compens (self, a=1, b=0) |
entre une valeur de compensation (à supprimer) More... | |
def | Read (self) |
retourne la valeur lue du capteur More... | |
def | Switch (self) |
forcement booleen, pas de parametre (à supprimer) More... | |
def | Write (self, Val) |
ecrit sur une sortie (PWM ou Tout ou Rien) More... | |
Additional Inherited Members | |
Public Attributes inherited from Capteur | |
Name | |
Voie | |
Static Public Attributes inherited from Capteur | |
Module = None | |
DS18B20 base on onewire Because the DS18B20 is very slow (> 100 ms) the ClVar will use this sensor must be a thread.
def __init__ | ( | self, | |
Name, | |||
Module = None , |
|||
Voie = None |
|||
) |
The constructor.
Name | (string) : the name to call it. If the name is the same that using ClVar, the link is automatic. |
Module | (CANModule) : must be an instance of Can Module CANModule. |
Voie | (int) : the num of the input or output. See the relativ Can Module input list. |
Reimplemented from Capteur.
def Read | ( | self | ) |
retourne la valeur lue du capteur
Reimplemented from Capteur.