OpenRepeater / scripts

Misc scripts live here like system build scripts. This is a Work-In-Progress...
5 stars 9 forks source link

Update ICS ADC to use the 12 bit driver instead of the 10 bit driver #35

Closed Dloranger closed 2 years ago

Dloranger commented 4 years ago

https://github.com/OpenRepeater/scripts/blob/2.1.2/functions/functions.sh#L290-L291

replace existing 10 bit driver code

Enable mcp3008 adc overlay

dtoverlay=mcp3008:spi0-0-present,spi0-0-speed=3600000

with the 12 bit callout

Enable mcp3208 adc overlay

dtoverlay=mcp3202:spi0-0-present,spi0-0-speed=3600000

Dloranger commented 3 years ago

This change will give the 12bit accuracy, but inadvertantly sets it to give only 2 channels instead of 8

RichNeese commented 2 years ago

close

Dloranger commented 2 years ago

Confirmed change - https://github.com/OpenRepeater/scripts/blob/3.0.x-DEV/functions/functions_ics.sh#L30