
Get started
Interface with the XBIB-C-GPS module
Digi XBee® 3 802.15.4 RF Module User Guide
36
Step 3: Edit the MicroPython file
1. Navigate to the location of the repository zip file that you created in Step 2.
2. Navigate to:
samples/gps
3. Open the MicroPython file:
gpsdemo1.py
4. Using the editor of your choice, edit the MicroPython file. At the top of the file, enter the user
name and password for your Remote Manager developer account. The correct location is
indicated in the comments in the file.
Step 4: Run the program
1. Rename the file you edited in Step 3 from
gpsdemo1.py
to
main.py
.
2. Copy the renamed file onto your device's root filesystem directory.
3. Copy the following three modules from the locations specified below into your device's
/lib
directory:
n
From the
/lib
directory of the Digi xbee-micropython repository:
urequest.py
and
remotemanager.py
n
From the
/lib/sensor
directory of the Digi xbee-micropython repository:
hdc1080.py
Note
These modules are required to be able to run the
gpsdemo1.py
.
4. Open
and use the MicroPython Terminal to run the demo.
5. Type <CTRL>-R from the MicroPython prompt to run the code.