Jura-Python-BT
Code for control and payment system of Jura Coffee Machine
Loading...
Searching...
No Matches
Functions | Variables
Read Namespace Reference

Functions

def lcd_init ()
 
def lcd_byte (bits, mode)
 
def lcd_toggle_enable (bits)
 
def lcd_string (message, line)
 
def end_read (signal, frame)
 

Variables

int I2C_ADDR = 0x27
 
int LCD_WIDTH = 16
 
int LCD_CHR = 1
 
int LCD_CMD = 0
 
int LCD_LINE_1 = 0x80
 
int LCD_LINE_2 = 0xC0
 
int LCD_LINE_3 = 0x94
 
int LCD_LINE_4 = 0xD4
 
int LCD_BACKLIGHT = 0x08
 
int ENABLE = 0b00000100
 
float E_PULSE = 0.0005
 
float E_DELAY = 0.0005
 
smbus bus = smbus.SMBus(1)
 
bool continue_reading = True
 
MFRC522 MIFAREReader = MFRC522.MFRC522()
 
 status
 
 TagType
 
 uid
 
str uid_str = str(uid[0]).zfill(3) + str(uid[1]).zfill(3) + str(uid[2]).zfill(3) + str(uid[3]).zfill(3)
 
int eur = 10
 
int cent = 75
 
str betrag = str(eur) + "," + str(cent).zfill(2)
 

Function Documentation

◆ end_read()

def Read.end_read (   signal,
  frame 
)

◆ lcd_byte()

def Read.lcd_byte (   bits,
  mode 
)

◆ lcd_init()

def Read.lcd_init ( )

◆ lcd_string()

def Read.lcd_string (   message,
  line 
)

◆ lcd_toggle_enable()

def Read.lcd_toggle_enable (   bits)

Variable Documentation

◆ betrag

str Read.betrag = str(eur) + "," + str(cent).zfill(2)

◆ bus

smbus Read.bus = smbus.SMBus(1)

◆ cent

int Read.cent = 75

◆ continue_reading

bool Read.continue_reading = True

◆ E_DELAY

float Read.E_DELAY = 0.0005

◆ E_PULSE

float Read.E_PULSE = 0.0005

◆ ENABLE

int Read.ENABLE = 0b00000100

◆ eur

int Read.eur = 10

◆ I2C_ADDR

int Read.I2C_ADDR = 0x27

◆ LCD_BACKLIGHT

int Read.LCD_BACKLIGHT = 0x08

◆ LCD_CHR

int Read.LCD_CHR = 1

◆ LCD_CMD

int Read.LCD_CMD = 0

◆ LCD_LINE_1

int Read.LCD_LINE_1 = 0x80

◆ LCD_LINE_2

int Read.LCD_LINE_2 = 0xC0

◆ LCD_LINE_3

int Read.LCD_LINE_3 = 0x94

◆ LCD_LINE_4

int Read.LCD_LINE_4 = 0xD4

◆ LCD_WIDTH

int Read.LCD_WIDTH = 16

◆ MIFAREReader

MFRC522 Read.MIFAREReader = MFRC522.MFRC522()

◆ status

Read.status

◆ TagType

Read.TagType

◆ uid

Read.uid

◆ uid_str

str Read.uid_str = str(uid[0]).zfill(3) + str(uid[1]).zfill(3) + str(uid[2]).zfill(3) + str(uid[3]).zfill(3)