Search found 22 matches

by markkuk
Sun Jun 28, 2020 9:04 am
Forum: Hardware
Topic: ESP32 timers vs AVR timers
Replies: 6
Views: 3591

Re: ESP32 timers vs AVR timers

I took a look at the LEDC example, however it won't compile. ledc_timer_config_t ledc_timer = { .duty_resolution = LEDC_TIMER_13_BIT, // resolution of PWM duty .freq_hz = 5000, // frequency of PWM signal .speed_mode = LEDC_LS_MODE, // timer mode .timer_num = LEDC_LS_TIMER // timer index .clk_cfg = ...
by markkuk
Fri May 22, 2020 9:35 pm
Forum: ESP32 IDF
Topic: SNTP and static IP
Replies: 2
Views: 264

Re: SNTP and static IP

1.1.1.1 and 8.8.8.8 are public DNS servers, not NTP servers. Use the pool.ntp.org servers for NTP/SNTP.
by markkuk
Fri May 22, 2020 9:44 am
Forum: General Discussion
Topic: getLocalTime(&local); Definitions of time zones
Replies: 7
Views: 5407

Re: getLocalTime(&local); Definitions of time zones

The official reference for the TZ setting syntax is in the Single Unix Specification (a.k.a. POSIX) standard: https://pubs.opengroup.org/onlinepubs/9 ... tml#tag_08. See also the GNU libc documentation: https://www.gnu.org/software/libc/manua ... iable.html
by markkuk
Sun Apr 05, 2020 9:10 am
Forum: Hardware
Topic: ESP32 timers vs AVR timers
Replies: 6
Views: 3591

Re: ESP32 timers vs AVR timers

Timers aren't used for signal generation on ESP32. Use the LEDC, MCPWM or RMT units instead.
by markkuk
Sat Mar 14, 2020 9:01 am
Forum: General Discussion
Topic: I2C Read problem
Replies: 2
Views: 1963

Re: I2C Read problem

The read should be a single command, not two separate ones. This is the code I'm using: /** * Read a block of data from an I2C device. * @param dev_id I2C address of device * @param reg_addr register number where read starts * @param reg_data pointer to buffer where read data is stored * @param len...
by markkuk
Sun Feb 09, 2020 7:43 pm
Forum: ESP32 IDF
Topic: Problem with xTaskCreate in C++...
Replies: 13
Views: 5906

Re: Problem with xTaskCreate in C++...

Task handle is a variable, not a function so it doesn't need any wrappers.
by markkuk
Sun Feb 09, 2020 2:00 pm
Forum: ESP32 IDF
Topic: Problem with xTaskCreate in C++...
Replies: 13
Views: 5906

Re: Problem with xTaskCreate in C++...

You're defining a static wrapper function, but you aren't actually using it. The "this" pointer must be passed as a parameter to the wrapper function. void Channel::runOnceTask() { xTaskCreatePinnedToCore( &Channel::runOnceTaskW, // Function that should be called "Channel Run once", // Name of the t...
by markkuk
Sat Feb 08, 2020 10:34 am
Forum: ESP32 IDF
Topic: Problem with xTaskCreate in C++...
Replies: 13
Views: 5906

Re: Problem with xTaskCreate in C++...

cpersoz wrote:
Fri Feb 07, 2020 3:00 pm

Code: Select all

libs/Channel/src/Channel.cpp:279:25: error: 'reintrepret_cast' was not declared in this scope
That's simply a typing error, it's reinterpret_cast, not reintrepret_cast
by markkuk
Fri Jan 24, 2020 9:05 am
Forum: General Discussion
Topic: Trouble powering ESP32 using Raspberry Pi
Replies: 10
Views: 1355

Re: Trouble powering ESP32 using Raspberry Pi

Image
You should see 5V between the GND and USB pins, and 3.3V between GND and 3V

Go to advanced search