SharkBot DOC'S Page

command:

IOT_relay (BCM-pin) (on/off)

Set Relay connected in GPIO BCM-pin


Copy and paste the script in Sgneep-Box Script:

Simple Example:

IOT_relay 27 on

IOT_relay 17 off


Advanced Example:

make_sub relayon

sub relayon IOT_relay 27 on

sub relayon sleep 1

make_sub relayoff

sub relayoff IOT_relay 27 off

sub relayoff sleep 1

#

IOT_object push_btn in 23 5 pull_up

IOT_check push_btn in equal 1 CALL relayon ELSE relayoff