cancel
Showing results for 
Search instead for 
Did you mean: 

BL072-LRWAN1 CubeMx Atollic

MArna.19
Associate

Hello,

I want to use a multi channel ADC, But i can rean read only the channel0.

I will also want to read channel 4

how to do?

best regard

Michel

1 REPLY 1
ty.locke
Associate II

Michael,

Reading channel 4 can be done in the same manner as channel 0. For my example project I use HW_AdcReadChannel() to read values from ADC channels 0, 4, and 5 respectively. Make sure that your ADC is initialized and that pin PA4 is not being used by any other function in code or hardware and you shouldn't have any issue reading it.