Search found 59 matches

by gregstewart90
Fri Dec 14, 2018 5:53 am
Forum: General Discussion
Topic: LCD Library
Replies: 0
Views: 3070

LCD Library

Is there a library available to write to a simple 2X16 LCD? I'm moving from a raspberry pi to an ESP32, but I need support for an LCD. On the pi, I'm running this.
by gregstewart90
Tue Dec 19, 2017 8:09 pm
Forum: General Discussion
Topic: NVS Read/Write Over Usage
Replies: 4
Views: 18759

NVS Read/Write Over Usage

Is there a limit to the number of times I can write to or read from NVS? If I implement a timer with the ESP32 by updating the value total_time in NVS once a second by simply incrementing the value, will this cause problems? If there is a limitation, what are the best practices to avoid over use? vo...
by gregstewart90
Tue Oct 24, 2017 1:44 pm
Forum: General Discussion
Topic: Pause or stop bluetooth
Replies: 0
Views: 5431

Pause or stop bluetooth

I'm using libssh2 to ssh into a few devices from the esp32. It works great for my application, but when I enable bluetooth, the ssh session cannot connect. I know there are [ur=https://esp32.com/viewtopic.php?f=2&t=3364&p=15863&hilit=wifi+and+bluetooth&sid=1230275b322ae4fe7bf00058ddd3e94d#p15863l]pr...
by gregstewart90
Tue Oct 24, 2017 1:35 pm
Forum: General Discussion
Topic: Somrtimes ota works well,sometimes ota will go wrong.
Replies: 7
Views: 11735

Re: Somrtimes ota works well,sometimes ota will go wrong.

Is bluetooth enabled? I had to disable bluetooth to make OTA work successfully. WIFI and bluetooth can exist at the same time, but it can cause issues.
by gregstewart90
Thu Oct 12, 2017 10:50 pm
Forum: General Discussion
Topic: How to recover from I2C failure?
Replies: 2
Views: 7976

Re: How to recover from I2C failure?

THANK YOU THANK YOU! #include "driver/periph_ctrl.h" void reset_i2c(void){ i2c_reset_tx_fifo(I2C_N); i2c_reset_rx_fifo(I2C_N); periph_module_disable(PERIPH_I2C0_MODULE); periph_module_enable(PERIPH_I2C0_MODULE); i2c_driver_delete(I2C_N); init_I2C(); } This worked perfectly for me without any resetti...
by gregstewart90
Thu Oct 12, 2017 4:21 pm
Forum: General Discussion
Topic: How to recover from I2C failure?
Replies: 2
Views: 7976

How to recover from I2C failure?

I'm using a MCP23017 port expander which uses i2c. Occasionally I get a problem on the lines and the timeout is reached. This throws an error that I read. I simply reset the esp32 and then it starts working again. I've upgraded my IDF to the latest version, and now the reset no longer works. When it...
by gregstewart90
Tue Oct 10, 2017 3:47 pm
Forum: General Discussion
Topic: Reset I2C
Replies: 8
Views: 19560

Re: Reset I2C

I haven't checked for the slowing clock speed, but I got mine to work with the following code. It's nothing perfect, but I don't miss anything. Occasionally I still get stuck on the i2c line, but I just monitor that and reset as necessary. void initI2C() { i2c_config_t conf; conf.mode = I2C_MODE_MAS...
by gregstewart90
Wed Sep 13, 2017 1:48 pm
Forum: General Discussion
Topic: Storing Logs
Replies: 12
Views: 24304

Re: Storing Logs

If you can pack two int32 variables into an int64 and store that instead of a blob, that will be twice as efficient. I definitely can pack them together. Should I make an array of the log entries and save that to the blob or should I try to rename each entry? BlobLog blob_logs[]; ... nvs_set_blob(m...
by gregstewart90
Wed Sep 13, 2017 1:27 pm
Forum: General Discussion
Topic: Storing Logs
Replies: 12
Views: 24304

Re: Storing Logs

So I see my two options are to keep doing everything in nvs storage or take a big risk with the partition tables. I'll have a new run of boards soon that I can flash with a different partition table. Is there anything wrong with using the blob? My current plan uses a struct with two int32_t variable...
by gregstewart90
Tue Sep 12, 2017 10:58 pm
Forum: General Discussion
Topic: Storing Logs
Replies: 12
Views: 24304

Re: Storing Logs

(bump)