User manual

Script Name What it does
protoFlasher.py Just blinks some LEDs on the SN171 Proto Board.
protoSleepcaster.py Like McastCounter.py but this script is only for the SN171
Proto Board. Addionally, it demonstrates pung the node
to sleep between buon presses.
PWM.py (synapse.PWM.py) An importable script that adds support for Pulse Width
Modulaon (PWM) on pin GPIO 0 on plaorms based on the
MC9S08GB60A chip from Freescale.
servoControl.py A second example of using PWM.py. Controls the posion of
a standard hobby servo motor.
sevenSegment.py Script providing support for the seven-segment display on
the Synapse SN163 Bridge demonstraon board for plaorms
that do not include the setSegments()
built-in funcon.
snapsys.py (synapse.snapsys.py) Required by Portal, do not move, edit, or delete. Import this
script to enable compile-me populaon of the plaorm and
version variables.
spiTests.py Demonstrates interacng with SPI devices.
switchboard.py (synapse.switchboard.py) An importable script that defines some constants (for
readability) for switchboard-related enumeraons.
sysInfo.py An importable script that defines some constants (for
readability) for the getInfo() funcon’s enumeraons.
Throughput.py Can be used to benchmark packet transfer between two
units.
Scripts Specific to I
2
C
Script Name What it does
M41T81.py
(synapse.M41T81.py)
Demonstrates interfacing to a Clock Calendar chip via I
2
C
CAT24C128.py
(synapse.CAT24C128.py)
Demonstrates interfacing to a serial EEPROM chip via I
2
C
LIS302DL.py
(synapse.LIS302DL.py)
Demonstrates interfacing to an Accelerometer chip via I
2
C
SNAP® Network Operang System 51