Ordinateur de bord pour voiture de collection  6.3
Public Member Functions | List of all members
GPIOOUT Class Reference

Raspberry GPIO direct acces in output mode. More...

Inheritance diagram for GPIOOUT:
Capteur

Public Member Functions

def __init__ (self, Name, Voie=None)
 the constructor. More...
 
def Write (self, etat=False)
 write the state of the output 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...
 

Additional Inherited Members

- Public Attributes inherited from Capteur
 Module
 
 Name
 
 Voie
 

Detailed Description

Raspberry GPIO direct acces in output mode.

it used for OpenAuto management for example.

Date
11 aout 2020 création

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  Name,
  Voie = None 
)

the constructor.

The configuration is Out with Pull-Up.

Parameters
Name(string) : the name
Voie(int) : the number of GPIO pin (mode is "GPIO.BOARD")

Member Function Documentation

◆ Write()

def Write (   self,
  etat = False 
)

write the state of the output

Parameters
etat(boolean) : True to set, False to reset

Reimplemented from Capteur.


The documentation for this class was generated from the following file: