Search found 47 matches

by fivdiAtESP32
Sun Jan 06, 2019 11:09 am
Forum: General Discussion
Topic: (solved) I2C device poses a challenge
Replies: 17
Views: 10246

Re: I2C device poses a challenge

What I don't understand is how to wait 20 microseconds directly before the first stop condition. You don't need to poll the GPIO that the SCL is on. If I understand things correctly, after the first stop condition (which is the P after the 20 microsecond delay in the above diagram,) the idea is to a...
by fivdiAtESP32
Sun Jan 06, 2019 10:18 am
Forum: General Discussion
Topic: create program from scratch without make
Replies: 5
Views: 981

Re: create program from scratch without make

Take a look at this video: https://www.youtube.com/watch?v=-ttiPfmrehU At 4:08 the video describes how to configure where to look for header files, including those in components/bt/bluedroid/api/include. The file used to import the include path settings in the video is part of ESP32 Snippets and can...
by fivdiAtESP32
Wed Jan 02, 2019 5:58 pm
Forum: Showcase
Topic: [info] ESP-EYE DevKIT from Espressif spotted in the wild and i got one :)
Replies: 13
Views: 5605

Re: [info] ESP-EYE DevKIT from Espressif spotted in the wild and i got one :)

Interesting, very interesting indeed. There's some information about the board here too.
by fivdiAtESP32
Tue Jan 01, 2019 6:01 pm
Forum: ESP32 IDF
Topic: Read ADC in interrupt?
Replies: 2
Views: 1078

Re: Read ADC in interrupt?

Do you mean if it's a good idea to invoke adc1_get_raw or adc2_get_raw in an interrupt routine? If so, I don't think it's a good idea as invoking these functions involves spinlocks which isn't a good idea in an interrupt routine. See here . In order to get good ADC readings multisampling is likely t...
by fivdiAtESP32
Tue Jan 01, 2019 4:46 pm
Forum: ESP32 IDF
Topic: Check if SD is connected
Replies: 1
Views: 456

Re: Check if SD is connected

And a Happy New Year to you too.

If the SD card reader has a CD (Card Detect) output it could be connected to an ESP32 GPIO to detect whether or not a card is present.
by fivdiAtESP32
Tue Jan 01, 2019 4:30 pm
Forum: ESP32 IDF
Topic: Cannot declare array into the External PSRAM?
Replies: 4
Views: 1054

Re: Cannot declare array into the External PSRAM?

Does the file defining bigArray directly or indiectly include "sdkconfig.h"? If "sdkconfig.h" (which contains the define for CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY) is not directly or indirectly included then EXT_RAM_ATTR will be defined as the empty string here and an error message similar to ...
by fivdiAtESP32
Mon Dec 31, 2018 3:56 pm
Forum: General Discussion
Topic: Convert string IP address to integer
Replies: 3
Views: 1049

Re: Convert string IP address to integer

The capital "I" at the start of the message indicates that it's an information message rather than a warning,
by fivdiAtESP32
Mon Dec 31, 2018 12:25 pm
Forum: General Discussion
Topic: Convert string IP address to integer
Replies: 3
Views: 1049

Re: Convert string IP address to integer

for inet_addr add:

Code: Select all

#include "lwip/inet.h"
by fivdiAtESP32
Mon Dec 31, 2018 11:52 am
Forum: General Discussion
Topic: How best to convert uint8_t from uart_read_bytes to a char or something that can be added to cJSON object?
Replies: 2
Views: 878

Re: How best to convert uint8_t from uart_read_bytes to a char or something that can be added to cJSON object?

It's not fully clear if the protocol is a binary protocol or plain text protocol. It appears to be a binary protocol. If so, try with one of the following implementations of ParseData to see if it works. void ParseData(uint8_t * data) { uint32_t val = (data[0] * 100) + (data[1] * 10) + data[2]; ESP_...