52
5.5.2.
Port Settings
Before programming, you'll need to set the ports in the Block Programming Environment to match the parts
connected to your Studuino. Select
Edit
from the menu and choose
Port Settings
to open the Port Settings
dialog box. Uncheck
Button A2
. Now check
A2
under
Sensor/LED/Buzzer
and choose
Touch Sensor
.
You’ll also need to check
A4
and choose
LED
.
5.5.
Touch Sensors
A Touch Sensor is a kind of switch that detects whether or not you press it. You can use one to detect things
like collision with objects.
5.5.1.
Connecting a Touch Sensor
Connect an
LED
to
Sensor/LED/Buzzer
connector
A4
on your Studuino and your
Touch Sensor
to
A2
.
Gray
Black
Black
A4
A2
Keep an eye on your cables!
The gray wire should be at the top.
LED
Touch Sensor
Check and choose
Touch Sensor
Check and choose
LED
① Uncheck