nodemcu-esp8266-relay8
A sample sketch script to switch 8 channel relay. If we don't have a relay, we can test it by using led, with the longer led leg connected to the GPIO pin and the other led leg connected to a resistor and from the resistor to ground.
Contoh script untuk 8 channel relay. Jika kita tidak memiliki relay, kita bisa menggunakan lampu led untuk melakukan test. Kaki yg panjang dari lampu led masuk ke pin GPIO, sedangkan kaki yg pendek masuk ke pin ground. Jadi jika kita akan men test 8 channel, semua kaki led yg pendek dari 8 lampu led akan bertemu di satu pin ground.