No. The example is for Arduino. For Raspberry Pi, you must use this library: GrovePi/grove_spdt_relay.py at master · DexterInd/GrovePi · GitHub
No. The example is for Arduino. For Raspberry Pi, you must use this library: GrovePi/grove_spdt_relay.py at master · DexterInd/GrovePi · GitHub