User Tools

Site Tools


esp32_gpio

This is an old revision of the document!


Arduino code:

pinMode(GPIO, OUTPUT);
digitalWrite(GPIO, STATE);

pinMode(GPIO, INPUT);
digitalRead(GPIO);

The following modes are supported for the basic input and output:

  • INPUT sets the GPIO as input without pullup or pulldown (high impedance).
  • OUTPUT sets the GPIO as output/read mode.
  • INPUT_PULLDOWN sets the GPIO as input with the internal pulldown.
  • INPUT_PULLUP sets the GPIO as input with the internal pullup.
esp32_gpio.1677524621.txt.gz · Last modified: 2023/02/27 14:03 by 192.168.1.66