Skip to content
Snippets Groups Projects
Commit 09ba42c1 authored by Paulus Kruger's avatar Paulus Kruger
Browse files

i2cserv/gpio_hba_trigger.py

parent d6307ad9
No related branches found
No related tags found
1 merge request!11Pypcc2
...@@ -41,7 +41,7 @@ def runmethod(conf,Qout,methodid,mask): ...@@ -41,7 +41,7 @@ def runmethod(conf,Qout,methodid,mask):
sleep(value[0]/1000.) sleep(value[0]/1000.)
continue; continue;
v1=conf.getvarid(key) v1=conf.getvarid(key)
if v1: if not(v1 is None):
if value[0]=='Update': if value[0]=='Update':
#mask= #mask=
getvar(conf,Qout,v1,mask) getvar(conf,Qout,v1,mask)
......
...@@ -31,7 +31,7 @@ class spibitbang1(hwdev): ...@@ -31,7 +31,7 @@ class spibitbang1(hwdev):
# SDIOdirdev=self.conf['devreg'][SPIBB_pins.SDIOdir.value] # SDIOdirdev=self.conf['devreg'][SPIBB_pins.SDIOdir.value]
# SDIOdirpin=self.conf['parameters'][SPIBB_pins.SDIOdir.value] # SDIOdirpin=self.conf['parameters'][SPIBB_pins.SDIOdir.value]
logging.info(str(("SPIbb set",ADC_address,value))) logging.debug(str(("SPIbb set",ADC_address,value)))
SetI2C=self.conf['parentcls'].SetVarValue SetI2C=self.conf['parentcls'].SetVarValue
ADC_bytes = 0x00 ADC_bytes = 0x00
ADC_rw = 0x00 # 0 for write, 1 for read ADC_rw = 0x00 # 0 for write, 1 for read
...@@ -62,7 +62,7 @@ class spibitbang1(hwdev): ...@@ -62,7 +62,7 @@ class spibitbang1(hwdev):
# print("SDO",SDOdev,SDOpin) # print("SDO",SDOdev,SDOpin)
# print("CLK",CLKdev,CLKpin) # print("CLK",CLKdev,CLKpin)
# print("DIR",SDIOdirdev,SDIOdirpin) # print("DIR",SDIOdirdev,SDIOdirpin)
logging.info(str(("SPIbb get",ADC_reg_address))) logging.debug(str(("SPIbb get",ADC_reg_address)))
ADC_bytes = 0x00 ADC_bytes = 0x00
ADC_rw = 0x01 # 0 for write, 1 for read ADC_rw = 0x01 # 0 for write, 1 for read
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment