Download Print this page

DFRobot FireBeetle ESP32-E Manual page 41

Advertisement

pin:the Arduino pin number.
value:HIGH or LOW.
pinMode(pin, mode)
Description: Configures the specified pin to behave either as an input or an output
Parameter:
pin:the Arduino pin number to set the mode of.
mode:INPUT, OUTPUT, or INPUT_PULLUP.
Control LED via Keys
Analog IO
AnalogRead(pin)
Description: Reads the value from the specified analog pin.
Parameter:
pin:the name of the analog input pin to read
AnalogReference(type)
Description: Configures the reference voltage used for analog input
Parameter:
type
AnalogWrite(pin,value)
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

Advertisement

loading
Need help?

Need help?

Do you have a question about the FireBeetle ESP32-E and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Related Products for DFRobot FireBeetle ESP32-E

This manual is also suitable for:

Dfr0654