Created
August 5, 2020 18:30
-
-
Save pc-coholic/f64aa343d6d4bdba2e1de4f018ed86c1 to your computer and use it in GitHub Desktop.
pylibmdb tets files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mdbreset() | |
mdbpoll() | |
mdbsetup() | |
features = mdbexpansionidentification() | |
mdbexpansionfeatureenable(features) | |
mdbexpansiondiagnosticstatus() | |
mdbtubestatus() | |
mdbcointype() | |
mdbpayout(10) | |
mdbpayoutpoll() | |
mdbpayoutpoll() | |
mdbpayoutpoll() | |
mdbpayoutstatus() | |
mdbtubestatus() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from MDB import MDB | |
import time | |
a = MDB.MDB("A1OUKMUG") | |
# Reset Sequence | |
a.reset() | |
a.poll() | |
a.setup() | |
a.expansionidentification() #IN: Optional Features: 0x0 0x0 0x0 0x7 | |
a.expansionfeatureenable(['\x00', '\x00', '\x00', '\x07']) | |
a.expansiondiagnosticstatus() | |
a.tubestatus() | |
#a.cointype() | |
a.enableall(manual = True) | |
#a.payout(100) | |
while True: | |
a.poll() | |
print a.getdeposited() | |
#63 | |
# 89,75E in Roehren | |
# - 22x5 cent = 1,10 Bestand | |
# = 88,65E aus Matemat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from MDB import MDB | |
import time | |
from binascii import hexlify, unhexlify | |
a = MDB.MDB("A1OUKMUG") | |
#a._send(['\x0B', '\x00']) | |
#a._send([0xB]) | |
#print a._calcchk([0xB]) | |
#print a._calcchk([(int(hexlify('\x0B'), 16))]) | |
#print a._calcchk(['\x0B']) | |
#print a._calcchk(['\x08']) | |
a._send(['\x08']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment