Skip to content

Hsck for working analogRead for internal channels (Vref and Temperature)#241

Open
fulda1 wants to merge 2 commits intoopenwch:mainfrom
fulda1:main
Open

Hsck for working analogRead for internal channels (Vref and Temperature)#241
fulda1 wants to merge 2 commits intoopenwch:mainfrom
fulda1:main

Conversation

@fulda1
Copy link

@fulda1 fulda1 commented Jan 31, 2026

This is small hack to get working analogRead for internal channels (Vref and Temperature). It is not nice, but works.
It cover 2 defects: 1) enable power for devices, when they are used (limited to CH32V20x, have no knowledge about others); 2) update of Input Pin To Name, to preserve internal channels (PADC_VREF, PADC_TEMP, ...);

Add command to enable internal sensors Vref and Temperature, when they are called.
Add small hack, when analogRead is used for internal channels, it preserve channel name. It is not nice but works for me.
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.

1 participant