Datasheet
There is a single slide switch near the center bottom of
the Circuit Playground Express. It is connected to digital
#7. The switch is unconnected when slid to the left and
connected to ground when slid to the right. Set pin #7 to
use an internal pull-up resistor so that the switch will
read HIGH when slid to the left and LOW when slid to
the right.
This is not an on-off switch, but you can use code to
have this switch control how you want your project to
behave
Note that you need to use an internal
pull-up
for the
slide switch, but an internal
pull-down
for the
pushbuttons.
Infrared Receive/Transmit & Proximity
New in Circuit Playground Express, we've added IR receive and transmit. This means you can communicate with TVs &
other household devices to control them. You can also send commands to the CPX with a remote control. And, finally,
you can send simple messages between multiple Circuit Playgrounds!
By bouncing IR light off of items and reading the reflected light, you can also do very simple proximity sensing!
There's two elements for infrared. The Transmitter is on
the left and is a big clear LED, this is connected via a
transistor to pin #29
On the right is the darker receiver LED, which also has a
decoder chip. This chip will receive the 38KHz signals
and demodulate them for you. The demodulated output
is available on pin #39
There's also a
secret
capability, you can read the 'raw'
analog value from the receiver LED diode to do basic IR
proximity sensing. The direct analog value is available
from pin A10
© Adafruit Industries https://learn.adafruit.com/adafruit-circuit-playground-express Page 23 of 211










