Make a Simple Piston
User Story: As a user, when my main door opens, I want my bulb color to be red. Otherwise, I want my bulb color to be green.
- The Contact Sensor is OPEN
- Set the bulb color to RED
- Set the bulb color to GREEN
Login to sdc.webcore.co with your Samsung account.
See all your available piston on the webCoRE dashboard.
Create a new blank Piston.
Write code in webCoRe Editor.
Add a new If condition.
Add a Then command.
Add an Else Command.
Save the piston.
See the saved piston on the dashboard.
Learn more by watching the video
If you wish to learn more, you may continue with our advanced topic and make a complicated piston!