Specifications

Script Name What it does
hardTime.py (synapse.hardTime.py) Helper script useful for SNAPpy benchmarking. NOTE
as of version 2.4, this script imports the correct
“platform-specific” helper script.
hexSupport.py (synapse.hexSupport.py) Helper script that can generate hexadecimal output
i2cTests.py Demonstrates interacting with I
2
C devices
ledCycling.py An example of using PWM.py. Varies the brightness of
the LED on the Demonstration Boards
ledToggle.py Simple example of toggling an LED based on a switch
input
LinkQualityRanger.py Radio range testing helper
McastCounter.py Maintains and displays a two-digit count, incremented
by button presses. Resets the count when the button is
held down. Broadcasts “count changes” to any listening
units, and also acts on “count changes” from other units.
NewPinWakeupTest.py Demonstrates using the other Pin Wakeup related scripts
nvparams.py (synapse.nvparams.py) Provides named enumerations for referencing NV
parameters.
pinWakeup.py
(synapse.pinWakeup.py)
An importable script that adds “wake up on pin change”
functionality. NOTE – as of version 2.2, this script
mainly just imports the correct “platform-specific”
helper script.
platforms.py (synapse.platforms.py) Import this to automatically import needed “platform
dependent” scripts. These scripts enable you to code
based on SNAP Engine GPIO pin numbers rather than
tracking pin outputs on different SNAP Engine
platforms.
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, plus it goes to sleep between button
presses
PWM.py (synapse.PWM.py) An importable script that adds support for Pulse Width
Modulation (PWM) on pin GPIO 0 on platforms based
on the MC9S08GB60A chip from Freescale.
servoControl.py A second example of using PWM.py. Controls the
position of a standard hobby servo motor.
sevenSegment.py Script providing support for the seven-segment display
on the Synapse SN163 Bridge demonstration board for
platforms that do not include the setSegments() built-in
function.
snapsys.py (synapse.snapsys.py) Required by Portal, do not edit or delete. Import this
script to enable compile-time population of the platform
and version variables.
spiTests.py Demonstrates interacting with SPI devices.
switchboard.py (synapse.switchboard.py) An importable script that defines some switchboard
related constants (for readability)
Page 108 of 202 SNAP Reference Manual Document Number 600-0007K