Search found 94 matches
- Sun Apr 30, 2023 3:09 pm
- Forum: General Discussion
- Topic: How to get "CPU load" and "Memory Usage"
- Replies: 18
- Views: 56917
Re: How to get "CPU load" and "Memory Usage"
I've been using this to get a smoothed idle count for each CPU. The reported number is typically around 2,000 - 20,000 or higher when everything is good. Under 1000 means there is not much idle time left. // Register a callback to be called from the specified core’s idle hook. // The callback should...
- Sun Apr 23, 2023 5:03 pm
- Forum: Hardware
- Topic: Dose it going to work ???
- Replies: 2
- Views: 1404
Re: Dose it going to work ???
The doc for the dev board ... does it show how to get to the I/O pins? Which ones are available? It looks like they may have pre-assigned most/all of them. Three are hardwired to LEDs, another to a photodiode; you might wish they were available for the quad encoder, etc. If they bring out the serial...
- Sun Apr 23, 2023 4:10 pm
- Forum: General Discussion
- Topic: Using C++ static class members
- Replies: 2
- Views: 1418
Re: Using C++ static class members
from https://en.cppreference.com/w/cpp/language/static class X { static int n; }; // declaration (uses 'static') int X::n = 1; // definition (does not use 'static') you've declared it, but not defined it. Look at the end of the long line, undefined reference to `Class1::staticField1'
- Sat Apr 15, 2023 8:27 pm
- Forum: ESP32 Arduino
- Topic: Suddenly getting a Heap error on SSCANF
- Replies: 3
- Views: 3278
Re: Suddenly getting a Heap error on SSCANF
I've not used sscanf in a long time. It seems likely, based on the %x doc in https://linux.die.net/man/3/sscanf, Matches an unsigned hexadecimal integer; the next pointer must be a pointer to unsigned int that the uint8 values are being used as uint32 and one of them, at least, is clobbering whateve...
- Sun Apr 09, 2023 12:57 pm
- Forum: General Discussion
- Topic: power options for enclosure using ESP32 board
- Replies: 7
- Views: 4328
Re: power options for enclosure using ESP32 board
It sounds like you have some sort of dev kit https://www.espressif.com/sites/default/files/dev-board/ESP32-S2-DevKitM-1%20small_0.png Did you make a pcb to mount the dev kit on? Then you'd use either the 5V or 3.3V pin to power it. I used 5V supply like this for one project: https://www.digikey.com/...
- Fri Apr 07, 2023 2:33 am
- Forum: General Discussion
- Topic: Can I still flash wemos/lolin ESP32 via pin headers if USB is destroyed?
- Replies: 15
- Views: 8967
Re: Can I still flash wemos/lolin ESP32 via pin headers if USB is destroyed?
I found https://www.reddit.com/r/esp32/comments/bwgn1q/how_to_power_a_lolin_d32_externally_from_a_dc/ which points to https://www.youtube.com/watch?v=yZjpYmWVLh8 which points out that there is an EN pin that can disable the regulator so you can supply 3.3V. You are right, the diagram is hard to foll...
- Thu Apr 06, 2023 6:05 pm
- Forum: Documentation
- Topic: UART 3 Stop bits is undefined
- Replies: 10
- Views: 6641
Re: UART 3 Stop bits is undefined
Explanation of why 2 stop bits were needed for a mechanical TTY https://retrocomputing.stackexchange.com/a/631
Extra stop bit(s) might be needed to slow down a datastream, but it would be pretty unusual for hardware less than about 30 years old.
Extra stop bit(s) might be needed to slow down a datastream, but it would be pretty unusual for hardware less than about 30 years old.
- Sun Apr 02, 2023 2:46 pm
- Forum: ESP-IDF
- Topic: Block ping to ESP32
- Replies: 2
- Views: 1084
Re: Block ping to ESP32
Please post back if you figure it out. Two things I found that might point you in the right direction:
https://superuser.com/questions/1664768 ... ng-work-on
https://docs.espressif.com/projects/esp ... _echo.html
https://superuser.com/questions/1664768 ... ng-work-on
https://docs.espressif.com/projects/esp ... _echo.html
- Sun Apr 02, 2023 12:19 pm
- Forum: General Discussion
- Topic: Can I still flash wemos/lolin ESP32 via pin headers if USB is destroyed?
- Replies: 15
- Views: 8967
Re: Can I still flash wemos/lolin ESP32 via pin headers if USB is destroyed?
I don't know about wemos/lolin, but the dev kit c shows a blocking diode between the laptop/usb supply and the EXT_5V pin. The usb 5V supply is frequently not enough amps to support wifi without an external 5V supply, so I've been using both supplies with the random devices I get from amazon. I'd be...
- Sun Apr 02, 2023 11:21 am
- Forum: General Discussion
- Topic: Bug in esp_wifi_scan_get_ap_num ??
- Replies: 3
- Views: 1473
Re: Bug in esp_wifi_scan_get_ap_num ??
Should this
be
? I believe realloc is hard to use correctly: https://stackoverflow.com/questions/907 ... se-realloc and I don't think I've ever used it.
Code: Select all
scanned_APs = realloc(*scanned_APs, used_space);
Code: Select all
*scanned_APs = realloc(*scanned_APs, used_space);