Search found 402 matches

by mzimmers
Sun Jun 24, 2018 3:48 pm
Forum: General Discussion
Topic: trying to read an ADC GPIO
Replies: 17
Views: 3914

Re: trying to read an ADC GPIO

Hi, Neil - I don't think that page necessarily needs updating. I was just hoping that there would be a location where all the pertinent information for GPIOs (including any use by the ESP32 module itself, for example GPIO32 which evidently is the input to the RTC). We chose GPIO32 for our applicatio...
by mzimmers
Fri Jun 22, 2018 8:31 pm
Forum: General Discussion
Topic: trying to read an ADC GPIO
Replies: 17
Views: 3914

Re: trying to read an ADC GPIO

Except... ...it turns out that I need to keep GPIO 32 as is...changing its configuration causes problem with the clock. So, before I go picking another GPIO at random, is there a master list somewhere that explains which GPIOs are pre-allocated, and which are free? I couldn't find this information i...
by mzimmers
Fri Jun 22, 2018 3:20 pm
Forum: General Discussion
Topic: trying to read an ADC GPIO
Replies: 17
Views: 3914

Re: trying to read an ADC GPIO

Thanks for the help...the suggestions seem to have gotten it working.
by mzimmers
Thu Jun 21, 2018 11:37 pm
Forum: General Discussion
Topic: trying to read an ADC GPIO
Replies: 17
Views: 3914

Re: trying to read an ADC GPIO

No, I didn't...oops. So, disable pullup/pushdown/interrupts, set as output and call gpio_config()?

I'm not sure what it means to enable the output driver.

Thanks...
by mzimmers
Thu Jun 21, 2018 7:56 pm
Forum: General Discussion
Topic: trying to read an ADC GPIO
Replies: 17
Views: 3914

trying to read an ADC GPIO

...the docs make it seem fairly straightforward, so I must be doing it wrong. BATTERY_EN_NBR refers to an output pin that tells the batter controller to output its voltage level (to pin GPIO35). I assert the enable pin, do the ADC stuff, and clear the enable pin (to prevent further battery drawdown)...
by mzimmers
Tue Jun 05, 2018 10:57 pm
Forum: General Discussion
Topic: what do you use for timezone management?
Replies: 2
Views: 1302

what do you use for timezone management?

Hi all - Today I began working with maintaining wall time on the ESP32. Connecting to an NTP server was a breeze, but now I'm faced with the prospect of managing time zone settings. Various Google efforts haven't turned up much, so I figured I'd ask what other people use for this. I'm specifically i...
by mzimmers
Tue Jun 05, 2018 4:20 pm
Forum: General Discussion
Topic: writing to NVS
Replies: 21
Views: 6310

Re: writing to NVS

Yes, and that's correct. I don't know how to reconcile that with the passage I cited, but I'm inclined to think it's an error.
by mzimmers
Tue Jun 05, 2018 3:57 am
Forum: General Discussion
Topic: writing to NVS
Replies: 21
Views: 6310

Re: writing to NVS

That makes perfect sense, but I don't see anything else in the example I tried to follow (or on the follow the docs page). So, how does one execute the initial read or write to a new namespace? EDIT: I think I found the problem: the correct sequence for the first time one uses a given key is: - nvs_...
by mzimmers
Mon Jun 04, 2018 10:44 pm
Forum: General Discussion
Topic: writing to NVS
Replies: 21
Views: 6310

Re: writing to NVS

Yeah, that makes more sense now. I don't have it working quite right yet, though. Here's a code snippet: void Nvs::read(NvStruct *nvp) #define STORAGE_NAMESPACE "my_namespace" #define STORAGE_KEY "my_storage_key" { esp_err_t err = ESP_OK; err = nvs_open(STORAGE_NAMESPACE, NVS_READWRITE, &handle); as...
by mzimmers
Mon Jun 04, 2018 9:08 pm
Forum: General Discussion
Topic: writing to NVS
Replies: 21
Views: 6310

Re: writing to NVS

Ohhhhhh, I see now...the NVS facility uses the nvs partition (duh) that already exists, so I don't need to create my own partition for this.

I just create a namespace and a key for my blob, and use them when making nvs_open/nvs_get_blob/nvs_set_blob/nvs_commit/nvs_close calls.

That about right?

Go to advanced search