User Tools

Site Tools


public:protocols:python-digi-xbee

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:protocols:python-digi-xbee [2020/05/10 15:50] – [Typical instantiation of a remote device & remote pin control:] timdv91public:protocols:python-digi-xbee [2023/02/26 04:51] (current) – external edit 127.0.0.1
Line 25: Line 25:
 </code> </code>
  
-===== Typical instantiation of a remote device & remote pin control: =====+===== Typical instantiation of a remote device: =====
 <code python init remote-devices> <code python init remote-devices>
 # Instantiate a remote XBee device object. # Instantiate a remote XBee device object.
 remote_device = RemoteXBeeDevice(device, XBee64BitAddress.from_hex_string("0013A200xxxxxxxx")) remote_device = RemoteXBeeDevice(device, XBee64BitAddress.from_hex_string("0013A200xxxxxxxx"))
 </code> </code>
 +
 +===== remote pin control: =====
 <code python set IO> <code python set IO>
 remote_device.set_io_configuration(IOLine.DIO11_PWM1, IOMode.DIGITAL_OUT_HIGH) remote_device.set_io_configuration(IOLine.DIO11_PWM1, IOMode.DIGITAL_OUT_HIGH)
Line 72: Line 74:
  
 ===== At end of program: ===== ===== At end of program: =====
-<code python>+<code python close port>
 device.close() device.close()
 </code> </code>
public/protocols/python-digi-xbee.1589125846.txt.gz · Last modified: (external edit)