Ordinateur de bord pour voiture de collection 7.1
Public Member Functions | Static Public Attributes | List of all members
LIS3DH Class Reference

le LIS3DH et un accelerometre Voir la datasheet du composant pour plus de détails. More...

Inheritance diagram for LIS3DH:
I2C_Module

Public Member Functions

def __init__ (self, I2Cbus=None, adresse=0x18)
 The constructor. More...
 
def ReadX (self)
 
def ReadY (self)
 
def ReadZ (self)
 
- Public Member Functions inherited from I2C_Module
def __init__ (self, I2Cbus=None, adresse=0)
 The constructor. More...
 
def get (self, registre)
 
def send (self, registre, cmd)
 

Static Public Attributes

int REG_ACT_DUR = 0x3f
 
int REG_ACT_THS = 0x3e
 
int REG_CLICK_CFG = 0x38
 
int REG_CLICK_SRC = 0x39
 
int REG_CLICK_THS = 0x3a
 
int REG_CTRL_REG0 = 0x1e
 
int REG_CTRL_REG1 = 0x20
 
int REG_CTRL_REG2 = 0x21
 
int REG_CTRL_REG3 = 0x22
 
int REG_CTRL_REG4 = 0x23
 
int REG_CTRL_REG5 = 0x24
 
int REG_CTRL_REG6 = 0x25
 
int REG_FIFO_CTRL_REG = 0x2e
 
int REG_FIFO_SRC_REG = 0x2f
 
int REG_INT1_CFG = 0x30
 
int REG_INT1_DURATION = 0x33
 
int REG_INT1_SRC = 0x31
 
int REG_INT1_THS = 0x32
 
int REG_INT2_CFG = 0x34
 
int REG_INT2_DURATION = 0x37
 
int REG_INT2_SRC = 0x35
 
int REG_INT2_THS = 0x36
 
int REG_INT_COUNTER_REG = 0x0e
 
int REG_OUT_ADC1_H = 0x09
 
int REG_OUT_ADC1_L = 0x08
 
int REG_OUT_ADC2_H = 0x0b
 
int REG_OUT_ADC2_L = 0x0a
 
int REG_OUT_ADC3_H = 0x0d
 
int REG_OUT_ADC3_L = 0x0c
 
int REG_OUT_X_H = 0x29
 
int REG_OUT_X_L = 0x28
 
int REG_OUT_Y_H = 0x2b
 
int REG_OUT_Y_L = 0x2a
 
int REG_OUT_Z_H = 0x2d
 
int REG_OUT_Z_L = 0x2c
 
int REG_REFERENCE = 0x26
 
int REG_STATUS_AUX = 0x07
 
int REG_STATUS_REG = 0x27
 
int REG_TEMP_CFG_REG = 0x1f
 
int REG_TIME_LATENCY = 0x3c
 
int REG_TIME_LIMIT = 0x3b
 
int REG_TIME_WINDOW = 0x3d
 
int REG_WHO_AM_I = 0x0f
 

Detailed Description

le LIS3DH et un accelerometre Voir la datasheet du composant pour plus de détails.

Dans une estafette, il est utilisé en inclinomètre.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  I2Cbus = None,
  adresse = 0x18 
)

The constructor.


Reimplemented from I2C_Module.

Member Function Documentation

◆ ReadX()

def ReadX (   self)

◆ ReadY()

def ReadY (   self)

◆ ReadZ()

def ReadZ (   self)

Member Data Documentation

◆ REG_ACT_DUR

int REG_ACT_DUR = 0x3f
static

◆ REG_ACT_THS

int REG_ACT_THS = 0x3e
static

◆ REG_CLICK_CFG

int REG_CLICK_CFG = 0x38
static

◆ REG_CLICK_SRC

int REG_CLICK_SRC = 0x39
static

◆ REG_CLICK_THS

int REG_CLICK_THS = 0x3a
static

◆ REG_CTRL_REG0

int REG_CTRL_REG0 = 0x1e
static

◆ REG_CTRL_REG1

int REG_CTRL_REG1 = 0x20
static

◆ REG_CTRL_REG2

int REG_CTRL_REG2 = 0x21
static

◆ REG_CTRL_REG3

int REG_CTRL_REG3 = 0x22
static

◆ REG_CTRL_REG4

int REG_CTRL_REG4 = 0x23
static

◆ REG_CTRL_REG5

int REG_CTRL_REG5 = 0x24
static

◆ REG_CTRL_REG6

int REG_CTRL_REG6 = 0x25
static

◆ REG_FIFO_CTRL_REG

int REG_FIFO_CTRL_REG = 0x2e
static

◆ REG_FIFO_SRC_REG

int REG_FIFO_SRC_REG = 0x2f
static

◆ REG_INT1_CFG

int REG_INT1_CFG = 0x30
static

◆ REG_INT1_DURATION

int REG_INT1_DURATION = 0x33
static

◆ REG_INT1_SRC

int REG_INT1_SRC = 0x31
static

◆ REG_INT1_THS

int REG_INT1_THS = 0x32
static

◆ REG_INT2_CFG

int REG_INT2_CFG = 0x34
static

◆ REG_INT2_DURATION

int REG_INT2_DURATION = 0x37
static

◆ REG_INT2_SRC

int REG_INT2_SRC = 0x35
static

◆ REG_INT2_THS

int REG_INT2_THS = 0x36
static

◆ REG_INT_COUNTER_REG

int REG_INT_COUNTER_REG = 0x0e
static

◆ REG_OUT_ADC1_H

int REG_OUT_ADC1_H = 0x09
static

◆ REG_OUT_ADC1_L

int REG_OUT_ADC1_L = 0x08
static

◆ REG_OUT_ADC2_H

int REG_OUT_ADC2_H = 0x0b
static

◆ REG_OUT_ADC2_L

int REG_OUT_ADC2_L = 0x0a
static

◆ REG_OUT_ADC3_H

int REG_OUT_ADC3_H = 0x0d
static

◆ REG_OUT_ADC3_L

int REG_OUT_ADC3_L = 0x0c
static

◆ REG_OUT_X_H

int REG_OUT_X_H = 0x29
static

◆ REG_OUT_X_L

int REG_OUT_X_L = 0x28
static

◆ REG_OUT_Y_H

int REG_OUT_Y_H = 0x2b
static

◆ REG_OUT_Y_L

int REG_OUT_Y_L = 0x2a
static

◆ REG_OUT_Z_H

int REG_OUT_Z_H = 0x2d
static

◆ REG_OUT_Z_L

int REG_OUT_Z_L = 0x2c
static

◆ REG_REFERENCE

int REG_REFERENCE = 0x26
static

◆ REG_STATUS_AUX

int REG_STATUS_AUX = 0x07
static

◆ REG_STATUS_REG

int REG_STATUS_REG = 0x27
static

◆ REG_TEMP_CFG_REG

int REG_TEMP_CFG_REG = 0x1f
static

◆ REG_TIME_LATENCY

int REG_TIME_LATENCY = 0x3c
static

◆ REG_TIME_LIMIT

int REG_TIME_LIMIT = 0x3b
static

◆ REG_TIME_WINDOW

int REG_TIME_WINDOW = 0x3d
static

◆ REG_WHO_AM_I

int REG_WHO_AM_I = 0x0f
static

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