- My goal is: I want to know about GPIO.write states
- My actions are:
load('api_gpio.js');
GPIO.set_mode(2, GPIO.MODE_OUTPUT);
GPIO.write(2,1);
I am testing GPIO functionality with LoLin ESP 8266 board
when I use GPIO.write(2,0)
on board led is on and when I use GPIO.write(2,1)
led is off.
3. The result I see is:
I am testing GPIO functionality with LoLin ESP 8266 board
when I use GPIO.write(2,0)
on board led is on and when I use GPIO.write(2,1)
led is off.
4. My expectation & question is:
In general 1 stands for HIGH i.e. led should be on and 0 stands for low i.e. off.
please help I need to present my work tomorrow.