Skip to content

Migrate ADC to new 5.x driver - #473

Merged
vroland merged 2 commits into
mainfrom
adc-migration
May 7, 2026
Merged

Migrate ADC to new 5.x driver#473
vroland merged 2 commits into
mainfrom
adc-migration

Conversation

@vroland

@vroland vroland commented Apr 12, 2026

Copy link
Copy Markdown
Owner

Since IDF 4.x support is dropped, we can migrate to the new ADC driver.
This was extracted from #463 by @Bwooce.

@vroland

vroland commented Apr 12, 2026

Copy link
Copy Markdown
Owner Author

@martinberlin If you have the time and a V5 board handy, could you test this change?

@martinberlin

Copy link
Copy Markdown
Collaborator

Looking good. This is my Serial output testing with dragon in a 6" board:

app_init: ESP-IDF:          v5.5.1-875-g64726df15e-dirty
I (845) efuse_init: Min chip rev:     v0.0
I (850) efuse_init: Max chip rev:     v3.99 
I (855) efuse_init: Chip rev:         v3.0
I (859) heap_init: Initializing. RAM available for dynamic allocation:
I (867) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (873) heap_init: At 3FFB2F58 len 0002D0A8 (180 KiB): DRAM
I (879) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (885) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (892) heap_init: At 4009130C len 0000ECF4 (59 KiB): IRAM
I (898) esp_psram: Adding pool of 4096K of PSRAM memory to heap allocator
I (906) spi_flash: detected chip: generic
I (910) spi_flash: flash io: qio
W (914) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
W (927) rmt(legacy): legacy driver is deprecated, please migrate to `driver/rmt_tx.h` and/or `driver/rmt_rx.h`
W (938) i2c: This driver is an old driver, please migrate your application code to adapt `driver/i2c_master.h`
I (949) main_task: Started on CPU0
I (959) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (959) main_task: Calling app_main()
I (959) epd: Space used for waveform LUT: 64K
I (4659) epdiy: mirror: 0ms, rot: 0ms, diff: 264ms, draw: 1590ms, buffer update: 53ms, mirror_rev: 0ms, total: 1907ms

@vroland

vroland commented Apr 15, 2026

Copy link
Copy Markdown
Owner Author

The dragon example doesn't actually read from ADC, afaik. Can you try again with the demo example?

@martinberlin

Copy link
Copy Markdown
Collaborator

I can but I'm afraid that is a V6 board not a V5. Actually after my move to Barcelona I don't really know where is my v5 board :(

@vroland

vroland commented Apr 16, 2026

Copy link
Copy Markdown
Owner Author

Ok, then I can test in May when I'm back home.

vroland and others added 2 commits May 7, 2026 23:09
Since IDF 4.x support is dropped, we can migrate to the new ADC driver.
This was extracted from #463 by
@Bwooce.
@vroland
vroland merged commit 6bf45a3 into main May 7, 2026
28 checks passed
@vroland
vroland deleted the adc-migration branch May 7, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants