|
Jura-Python-BT
Code for control and payment system of Jura Coffee Machine
|
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) |
| def Read.end_read | ( | signal, | |
| frame | |||
| ) |
| def Read.lcd_byte | ( | bits, | |
| mode | |||
| ) |
| def Read.lcd_init | ( | ) |
| def Read.lcd_string | ( | message, | |
| line | |||
| ) |
| def Read.lcd_toggle_enable | ( | bits | ) |
| smbus Read.bus = smbus.SMBus(1) |
| int Read.cent = 75 |
| bool Read.continue_reading = True |
| float Read.E_DELAY = 0.0005 |
| float Read.E_PULSE = 0.0005 |
| int Read.ENABLE = 0b00000100 |
| int Read.eur = 10 |
| int Read.I2C_ADDR = 0x27 |
| int Read.LCD_BACKLIGHT = 0x08 |
| int Read.LCD_CHR = 1 |
| int Read.LCD_CMD = 0 |
| int Read.LCD_LINE_1 = 0x80 |
| int Read.LCD_LINE_2 = 0xC0 |
| int Read.LCD_LINE_3 = 0x94 |
| int Read.LCD_LINE_4 = 0xD4 |
| int Read.LCD_WIDTH = 16 |
| MFRC522 Read.MIFAREReader = MFRC522.MFRC522() |
| Read.status |
| Read.TagType |
| Read.uid |