Learning how GPIO pin assign? [NEWBIE]
Posted: Tue Jun 21, 2016 3:31 am
Hello there..
These things, are new for me, like microcontroller, module, and etc.
Well, for the first, i search the code example. And i found it. But i wonder what does this code mean?
It seems the owner using esp8266-12, mine is esp8266-07.
Could someone explain to me what does that code?
specially these lines :
Many thanks
These things, are new for me, like microcontroller, module, and etc.
Well, for the first, i search the code example. And i found it. But i wonder what does this code mean?
Code: Select all
LAMP1=1
LAMP2=2
LAMP3=7
LAMP4=5
gpio.mode(LAMP1,gpio.OUTPUT)
gpio.mode(LAMP2,gpio.OUTPUT)
gpio.mode(LAMP3,gpio.OUTPUT)
gpio.mode(LAMP4,gpio.OUTPUT)
gpio.write(LAMP1,gpio.LOW)
gpio.write(LAMP2,gpio.LOW)
gpio.write(LAMP3,gpio.LOW)
gpio.write(LAMP4,gpio.LOW)
It seems the owner using esp8266-12, mine is esp8266-07.
Could someone explain to me what does that code?
specially these lines :
Code: Select all
LAMP1=1
LAMP2=2
LAMP3=7
LAMP4=5
Many thanks