Search found 92 matches
- Tue Oct 04, 2022 11:32 am
- Forum: ESP-IDF
- Topic: How to determine all ESP-IDF component include directories for running a code analysis tool
- Replies: 6
- Views: 4625
Re: How to determine all ESP-IDF component include directories for running a code analysis tool
I don't know how your analysis tool works so I'm not sure if this will help you but 'idf.py reconfigure' also produces a compile_commands.json file in the build directory which you can use with clangd. There's also an xtensa-clang package you can install that has a clangd updated for the xtensa plat...
- Wed Sep 28, 2022 2:38 pm
- Forum: IDEs for ESP-IDF
- Topic: Components folder with multiple subfolders
- Replies: 1
- Views: 2999
Re: Components folder with multiple subfolders
I just tried it and it works for me. You do only need the one "set" and it has to be after the cmake_minimum_required and before the include statement. cmake_minimum_required(VERSION 3.16) set(EXTRA_COMPONENT_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/../../../components/lowlevel" "${CMAKE_CURRENT_SOURCE_DIR...
- Fri Sep 16, 2022 11:09 am
- Forum: Hardware
- Topic: about gpio33 and 27 question
- Replies: 9
- Views: 5169
Re: about gpio33 and 27 question
Thank you a lot gtjoseph. As you checked into the Library file, I'd like to ask some thing confused me, that are: 1. seems the ESP32 goes into two totally different branches? I have two laptops one is WIN7; and the other one is WIN10 with the Arduino core for the ESP updated. some sketches be able ...
- Thu Sep 15, 2022 3:34 pm
- Forum: Hardware
- Topic: about gpio33 and 27 question
- Replies: 9
- Views: 5169
Re: about gpio33 and 27 question
If youi look in that library's Arduino_GFX_Library.h file you'll see #define DF_GFX_RST GFX_NOT_DEFINED It appears that DF_GFX_RST should be assigned to the GPIO that's connected to the display's RESET pin if it has one so in your code, you'll have to do something like... #undef DF_GFX_RST #define D...
- Wed Sep 14, 2022 11:15 pm
- Forum: Hardware
- Topic: about gpio33 and 27 question
- Replies: 9
- Views: 5169
- Wed Sep 14, 2022 12:08 pm
- Forum: Hardware
- Topic: about gpio33 and 27 question
- Replies: 9
- Views: 5169
Re: about gpio33 and 27 question
3 is the screen rotation
- Thu Sep 08, 2022 11:13 pm
- Forum: ESP-IDF
- Topic: ESP32 receive broadcast UDP packets
- Replies: 6
- Views: 5595
Re: ESP32 receive broadcast UDP packets
I have to admit I cut and pasted that in a hurry from something I'd hanging around for over 20 years :) It works because the value is only used as a true/false. To be honest, it'll probably always evaluate to true even if the value is actually 0. :( So yeah, the correct code is.. int broadcast = 1; ...
- Thu Sep 08, 2022 6:53 pm
- Forum: ESP-IDF
- Topic: ESP32 receive broadcast UDP packets
- Replies: 6
- Views: 5595
Re: ESP32 receive broadcast UDP packets
Is this (setsockopt) really necessary here? In one of my projects I receive broadcast UDP packets and I did not include this line and it all worked without problems. There was only one thing I needed to change: To avoid packet loss I needed to switch from WIFI_PS_MAX_MODEM to WIFI_PS_MIN_MODEM. Nev...
- Wed Sep 07, 2022 1:11 pm
- Forum: ESP-IDF
- Topic: Status of support for clang, clangd and LSP?
- Replies: 3
- Views: 4417
Re: Status of support for clang, clangd and LSP?
Perfect, thanks!!
- Mon Sep 05, 2022 11:45 am
- Forum: ESP-IDF
- Topic: ESP32 receive broadcast UDP packets
- Replies: 6
- Views: 5595
Re: ESP32 receive broadcast UDP packets
It's standard sockets programming. Look at the example at esp-idf/examples/protocols/sockets/udp_client. All you have to do is add the following after the call to setsockopt (sock, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof timeout); char broadcast = '1'; setsockopt(sock, SOL_SOCKET, SO_BROADCAST, &b...