-
Notifications
You must be signed in to change notification settings - Fork 79
Which pins can be used? #175
Comments
The ESP32 chip has the below list of pins exposed from the MCU. Per the product page for the M5Stack Basic, additional functions have been listed to the specified pins. Further details on functionality and mapping in the ESP32 available in the datasheet. Many functions can be mapped to any available pin by setting it in your code (e.g: using 3&1, 2&5, or 16&17 for a secondary I2C port) https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf GP0 = Pin(0) |
https://github.com/m5stack/M5Unified |
Hi, at the moment this is really quite difficult to figure out. There were people on the forums having trouble too. I think it would be useful if there was a straightforward list of all the exposed pins, stating for each pin whether it can be used freely, or whether there is something to watch out for.
For example, looking at the Basic,
In
core/basic.md
:ESP32 info:
In the schematic:
Trial and error:
api/gpio.md
gives some info about what the different pins are for, but doesn't answer this question. For example, it labels 1,3,16,17 as "UART", but as far as I can tell 16,17 are available for GPIO while 1,3 are not.The text was updated successfully, but these errors were encountered: