Search found 477 matches
- Mon Oct 31, 2022 2:12 am
- Forum: ESP-IDF
- Topic: ESP32 S3 SPI
- Replies: 1
- Views: 1100
- Wed Oct 26, 2022 11:49 pm
- Forum: ESP32 Arduino
- Topic: Interrupt change has a 38us delay
- Replies: 1
- Views: 1226
Re: Interrupt change has a 38us delay
You can knock off the long time it takes to read a pin state when using gpio_get_level(GPIO_NUM_27).
Try using this instead.
#define INPUT1_PIN GPIO_NUM_27
#define INPUT1_PIN_READ() (REG_READ(GPIO_IN1_REG) >> (INPUT1_PIN - 32))
if ((uint8_t)INPUT1_PIN_READ() )
{}
Try using this instead.
#define INPUT1_PIN GPIO_NUM_27
#define INPUT1_PIN_READ() (REG_READ(GPIO_IN1_REG) >> (INPUT1_PIN - 32))
if ((uint8_t)INPUT1_PIN_READ() )
{}
- Sat Oct 15, 2022 3:04 pm
- Forum: ESP-IDF
- Topic: I2C Read timeout too long
- Replies: 3
- Views: 1769
Re: I2C Read timeout too long
Not sure if this is it or not. The examples show: ret = i2c_master_cmd_begin(i2c_num, cmd, 1000 / portTICK_RATE_MS);
Not sure if pdMS_TO_TICKS(10) results are the same as 10 / portTICK_RATE_MS
Not sure if pdMS_TO_TICKS(10) results are the same as 10 / portTICK_RATE_MS
- Wed Oct 12, 2022 3:25 am
- Forum: Hardware
- Topic: Reconfigure GPIO as output after analog read
- Replies: 2
- Views: 1040
Re: Reconfigure GPIO as output after analog read
PIN_FUNC_SELECT(GPIO_PIN_MUX_REG[PIN_LED_RELAY2], PIN_FUNC_GPIO); gpio_set_direction(PIN_LED_RELAY2, GPIO_MODE_OUTPUT); gpio_set_level(PIN_LED_RELAY3, 1); Did you have a type here? Shouldn't it be PIN_LED_RELAY2 ? gpio_set_level(PIN_LED_RELAY3, 1); try... gpio_reset_pin(PIN_LED_RELAY2); gpio_set_di...
- Mon Oct 10, 2022 11:04 am
- Forum: General Discussion
- Topic: Eclipse or VScode Project?
- Replies: 5
- Views: 2169
Re: Eclipse or VScode Project?
you dont need a " import" just manually copy the the files to your projects "src" folder
- Sun Oct 09, 2022 4:00 pm
- Forum: General Discussion
- Topic: Eclipse or VScode Project?
- Replies: 5
- Views: 2169
Re: Eclipse or VScode Project?
without .vscode folder, it is Eclipse project? if the person copied the entire project folder, then yes. Can I use VSCode to import those source code from Eclipse project to VScode project? all you need to do is create a new project in either IDE. Download the GIT .c / .h source files, and copy the...
- Sat Oct 08, 2022 8:54 pm
- Forum: General Discussion
- Topic: Eclipse or VScode Project?
- Replies: 5
- Views: 2169
Re: Eclipse or VScode Project?
if its a vscode project there will be a .vscode folder.
- Thu Oct 06, 2022 6:46 pm
- Forum: General Discussion
- Topic: Reset pins to low level on reboot??
- Replies: 3
- Views: 1831
Re: Reset pins to low level on reboot??
How about trying gpio_reset_pin(GPIO_NUM_X); on the pins you want to reset before calling ESP.restart()
- Thu Oct 06, 2022 12:46 pm
- Forum: ESP32 Arduino
- Topic: Using ESP-IDF code in Arduino code?
- Replies: 4
- Views: 3181
Re: Using ESP-IDF code in Arduino code?
You can use ESP-IDF in Arduino
- Sun Oct 02, 2022 2:30 pm
- Forum: General Discussion
- Topic: freeRTOS microsecond delay
- Replies: 7
- Views: 6268
Re: freeRTOS microsecond delay
Instead of messing with loops and delays for controlling a servo. You should use ledc or the MCPWM feature. Are you aware that Espressif has an example for controlling a servo? https://github.com/espressif/esp-idf/tree/release/v4.4/examples/peripherals/mcpwm/mcpwm_servo_control#mcpwm-rc-servo-contro...