2023-07-15 00:50:35 +09:00
|
|
|
from supSMSGecko import make_xml, symbols, Button as B
|
|
|
|
|
|
|
|
def main(g, ver):
|
|
|
|
S = symbols[ver]
|
2023-07-16 10:29:04 +09:00
|
|
|
addr_inst = 0x26 + S['TMarDirector_direct']
|
2023-07-15 00:50:35 +09:00
|
|
|
addr_input = S['mPadStatus']
|
|
|
|
# code
|
|
|
|
g.write16(addr_inst, 600)
|
|
|
|
g.if16(addr_input, '==', B.B | B.DL)
|
|
|
|
g.write16(addr_inst, 2400)
|
|
|
|
g.if16(addr_input, '==', B.B | B.DR, endif=True)
|
|
|
|
g.write16(addr_inst, 4800)
|
|
|
|
g.endif()
|
|
|
|
|
|
|
|
make_xml(main)
|