EasyManua.ls Logo

DFRobot FireBeetle ESP32-E - Page 41

DFRobot FireBeetle ESP32-E
92 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
pinthe Arduino pin number.
valueHIGH or LOW.
pinMode(pin, mode)
Description: Configures the specified pin to behave either as an input or an output
Parameter:
pinthe Arduino pin number to set the mode of.
modeINPUT, OUTPUT, or INPUT_PULLUP.
Control LED via Keys
Analog IO
AnalogReadpin
Description: Reads the value from the specified analog pin.
Parameter:
pinthe name of the analog input pin to read
AnalogReferencetype
Description: Configures the reference voltage used for analog input
Parameter:
type
AnalogWritepinvalue
Description: Writes an analog value (PWM wave) to a pin. Can be used to light a LED at varying brightnesses or drive a motor at various
speeds. After a call to analogWrite(), the pin will generate a steady rectangular wave of the specified duty cycle until the next call to
analogWrite() (or a call to digitalRead() or digitalWrite()) on the same pin.
P t