Search found 5 matches
- Tue Aug 02, 2022 3:31 pm
- Forum: ESP-IDF
- Topic: ESP32 station_example_main.c from examples fails to compile
- Replies: 1
- Views: 1593
Re: ESP32 station_example_main.c from examples fails to compile
Never mind, I see the feature in question was only added in June. I think it's just that the PlatformIO package for ESP32 IoT hasn't caught up yet.
- Tue Aug 02, 2022 2:47 pm
- Forum: ESP-IDF
- Topic: ESP32 station_example_main.c from examples fails to compile
- Replies: 1
- Views: 1593
ESP32 station_example_main.c from examples fails to compile
The following statement fails to compile: wifi_config_t wifi_config = { .sta = { .ssid = "TrueSpeedUltra-4YJNX", .password = "3FKC5R54EFGR", .threshold.authmode = ESP_WIFI_SCAN_AUTH_MODE_THRESHOLD, .sae_pwe_h2e = WPA3_SAE_PWE_BOTH } }; The compile errors are: src/main.c:66:14: error: 'wifi_sta_confi...
- Mon Jun 12, 2017 8:36 am
- Forum: ESP-IDF
- Topic: Touch pad interrupts
- Replies: 0
- Views: 3139
Touch pad interrupts
I'm using the touch pad peripheral and successfully setting up interrupts with a threshold value determined by reading the touch counter at startup. I'm initialising the peripheral with the following code: void touch_handler(void*); ... touch_pad_init(); uint16_t val, average = 0; const uint16_t sam...
- Mon Jun 12, 2017 8:29 am
- Forum: ESP-IDF
- Topic: Convert timer value to wall time
- Replies: 2
- Views: 5470
Re: Convert timer value to wall time
Further experimentation suggests that the code above is out by a factor of exactly two. It's not exactly clear why, but it seems that TIMER_BASE_CLK is twice the maximum timer clock frequency.
- Sun Jun 11, 2017 12:32 pm
- Forum: ESP-IDF
- Topic: Convert timer value to wall time
- Replies: 2
- Views: 5470
Convert timer value to wall time
I'm setting up a timer like this: timer_config_t tconf; tconf.alarm_en = false; tconf.auto_reload = false; tconf.counter_dir = TIMER_COUNT_UP; tconf.counter_en = true; tconf.divider = 1; timer_init(TIMER_GROUP_1, TIMER_0, &tconf); timer_set_counter_value(TIMER_GROUP_1, TIMER_0, 0); timer_start(TIMER...