# --------------------------------------------------------------- # Toogle the outputs # --------------------------------------------------------------- print('Outputs are toggling...') stat = 0 for i in range(10): if stat == 1: QP1.high() QP2.high() QP3.high() QP4.high() QP5.high() QP6.high() stat = 0 else: QP1.low() QP2.low() QP3.low() QP4.low() QP5.low() QP6.low() stat = 1 utime.sleep_ms(500) # --------------------------------------------------------------- # Read the inputs # --------------------------------------------------------------- print('Read the inputs...') for i in range(10): print(IP1.value(), IP2.value(), IP3.value()) utime.sleep_ms(200)
from sty import Pin # --------------------------------------------------------------- # Power-on the XBEE-LP subsystem of RTK board # --------------------------------------------------------------- # XBEE Low Power Socket xbee_lp_pwr = Pin('PWR_XBEE_LP', Pin.OUT_OD) xbee_lp_pwr.high() # XBEE High Power Socket xbee_hp_pwr = Pin('PWR_XBEE_HP', Pin.OUT_OD) xbee_hp_pwr.high() # XBEE Low Power Direction (XBEE_LP <-> FTDI) xbee_lp_dir = Pin('XBEE_LP_DIR', Pin.OUT_OD) xbee_lp_dir.low() # XBEE High Power Direction (XBEE_HP <-> FTDI) xbee_hp_dir = Pin('XBEE_HP_DIR', Pin.OUT_OD) xbee_hp_dir.low() # Console info print('XBEE Power-On') print('You should see XBee serial ports on your PC ;)')
from sty import Pin # --------------------------------------------------------------- # Power-Off the Modem subsystem of RTK board # --------------------------------------------------------------- modem_pwr = Pin('PWR_GSM', Pin.OUT_OD) modem_pwr.low() # Console info print('Modem Power-Off')
from sty import Pin # --------------------------------------------------------------- # Power-Off the GNSS subsystem of RTK board # --------------------------------------------------------------- gnss_pwr = Pin('PWR_GNSS', Pin.OUT_OD) gnss_pwr.low() # Console info print('GNSS Power-Off')