palmerr23 / Black-F407VET6-cube

Alpha variant for new STM32duino code base https://github.com/stm32duino/Arduino_Core_STM32F4
10 stars 5 forks source link

STM32duino F4 ADC Library #3

Open palmerr23 opened 7 years ago

palmerr23 commented 7 years ago

Extend basic ADC functions available via analog.c at https://github.com/stm32duino/Arduino_Core_STM32F4

Create a flexible ADC library

Unless I find some significantly better features elsewhere, I will use the Maple library as a basis, as it has familiarity amongst Arduino STM32 users.

Currently have Single and Continuous conversions working with polling and interrupts.

teezzan commented 5 years ago

Hello, I have been unable to run the example codes you included. Is there a setup required? If there is, can you explain? Thanks for the great job.

palmerr23 commented 5 years ago

Hi,

This is very old code. It is based on a very early edition of the STM32 Arduino libraries, provided by ST Micro.

They may or may not still work, with the new libraries Frederic Pillon @fpistm has included in the current STM32 Arduino Boards Manager download. I'd look to his example files for insight on how to use the ADCs - as both are based on the core example code in the STM32F4 Cube.

I hope this helps.