ESP32 General Configuration

For general Flowcode discussion that does not belong in the other sections.
Post Reply
User avatar
oi18ct
Posts: 16
http://meble-kuchenne.info.pl
Joined: Mon Jun 14, 2021 11:53 pm
Location: North Branch, MN USA
Has thanked: 3 times
Been thanked: 2 times
Contact:

ESP32 General Configuration

Post by oi18ct »

I'm a little confused on how it's intended to set gpio internal pull-up/down settings via FC. In Build--->Project Options--->Configuration there is chip/module selection and clock cfg but not much else. Should there be more to the configuration?

I'm a bit new to both FC & ESP32. Feel like I might be missing some magic wiki page or manual...

LeighM
Valued Contributor
Posts: 395
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 70 times
Been thanked: 210 times

Re: ESP32 General Configuration

Post by LeighM »

Hi,
There's currently no general config in Flowcode for GPIO pull up or down.
But you can achieve this with some C code in a C icon.
For example to set pull-up on GPIO4 ...

Code: Select all

gpio_set_pull_mode(GPIO_NUM_4, GPIO_PULLUP_ONLY);

kersing
Valued Contributor
Posts: 155
Joined: Wed Dec 02, 2020 7:28 pm
Has thanked: 64 times
Been thanked: 58 times

Re: ESP32 General Configuration

Post by kersing »

But you can achieve this with some C code in a C icon.
Time for a component to add this for all controllers where this can’t be configured elsewhere?

User avatar
oi18ct
Posts: 16
Joined: Mon Jun 14, 2021 11:53 pm
Location: North Branch, MN USA
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: ESP32 General Configuration

Post by oi18ct »

Ok, that makes sense- Thank you.

To understand this better, generically speaking, is it the intention of FC9 to configure all gpio in a C-Block at initialization? Or does FC9 do some of the configuration based on the component selected (for example, i2c or ws2812)?

all commands from this link are available for the purpose of configuring gpio?
https://docs.espressif.com/projects/esp ... /gpio.html

One last question for clarification... in fc9 cfg, selecting ESP32-S would compile and execute on basically any module in the Espressif ESP32-S2 or S3 family? As an example, would a project compile & run successfully on both esp32-s3-mini-1 and also esp32-s3-wroom-2?

Prbly rudimentary, but your input will be quite helpful for where I'm at with this. Thank you!

Lee

User avatar
oi18ct
Posts: 16
Joined: Mon Jun 14, 2021 11:53 pm
Location: North Branch, MN USA
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: ESP32 General Configuration

Post by oi18ct »

ok, simplify the question- is ESP32-S2-Mini usable in FC9? Specifically ESP32-S2-DevKitM

User avatar
oi18ct
Posts: 16
Joined: Mon Jun 14, 2021 11:53 pm
Location: North Branch, MN USA
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: ESP32 General Configuration

Post by oi18ct »

Is it safe to assume that ESP32-S3-Mini is generically included as part of the ESP32S in the target selector?

I inquired about the -S2-Mini about a year ago in the forum but it didn't get a response. -S3 is now out since my original post. It is bluetooth v5 which is desirable. I thought I'd try the forum again for any input before investing time in lab to test fully. Our product design would benefit from this module... and it's available in world of unavailable IC's!

https://www.digikey.com/en/products/det ... 8/15295890

thank you

Post Reply