Open dzanis opened 6 days ago
Hi, and thanks for the hint! I'm a bit busy at the moment, but as soon as I have some free time, I'll try to find a solution.
Hi, and thanks for the hint! I'm a bit busy at the moment, but as soon as I have some free time, I'll try to find a solution.
Hello. There is something that can help understand the reason. It works fine if you don't use it ADC_enable() after initialization ADC_init(). It's strange, we still need to understand why (switch on) confuses the polling of more than one channel.
Hello. I tried the OLED and ADC on the CX32X033 chip. And I was surprised by the incomprehensible behavior of the readings output. On pin A0 there is a divider (10K/10K) of the voltage exactly in half, and on pin A1 there is a variable resistor. The readings are correct, but they are confused, I turn the variable resistor and it shows on A0, but it should be the other way around. I thought that maybe the chip is defective, because there are problems with the chip series ch32x33/35 Channel 3, channel 7, channel 11, channel 15 and I2C functions of the ADC are not available for products with a lot number with a penultimate 5 digit of 0; That's why I used your libraries, because there is no hardware I2C on the chip ch32x033 , thank you for this library i2c_soft.h. But I tried on another library (ch32v003fun and wch-hal) and the ADC works fine there. Here is the code I was talking about: