|
|
@ -4,6 +4,8 @@ import gex |
|
|
|
|
|
|
|
|
|
|
|
client = gex.Client() |
|
|
|
client = gex.Client() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#print(client.ini_read()) |
|
|
|
|
|
|
|
|
|
|
|
if False: |
|
|
|
if False: |
|
|
|
s = client.ini_read() |
|
|
|
s = client.ini_read() |
|
|
|
client.ini_write(s) |
|
|
|
client.ini_write(s) |
|
|
@ -79,5 +81,4 @@ if False: |
|
|
|
|
|
|
|
|
|
|
|
if True: |
|
|
|
if True: |
|
|
|
spi = gex.SPI(client, 'spi') |
|
|
|
spi = gex.SPI(client, 'spi') |
|
|
|
spi.write(0, [0xA1]) |
|
|
|
print(spi.query(0, [0xDE, 0xAD, 0xBE, 0xEF], rlen=4, rskip=1)) |
|
|
|
print("SPI done.") |
|
|
|
|
|
|
|