Skip to content

Commit

Permalink
Update adc1_cal.py
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs authored Feb 4, 2023
1 parent f76ecf6 commit dbd36da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adc1_cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,8 @@ def __str__(self):
AVERAGING = 10

adc_widths = [ADC.WIDTH_9BIT, ADC.WIDTH_10BIT, ADC.WIDTH_11BIT, ADC.WIDTH_12BIT]
adc_atten = [ADC.ATTN_0DB, ADC.ATTN_2_5DB, ADC.ATTN_6DB, ADC.ATTN_11DB]
adc_atten = [ADC.ATTN_0DB, ADC.ATTN_2_5DB, ADC.ATTN_6DB, ADC.ATTN_11DB]

# Using programmer-supplied calibration value
# ubatt = ADC1Cal(Pin(ADC_PIN, Pin.IN), DIV, VREF, AVERAGING, "ADC1 User Calibrated")

Expand Down

0 comments on commit dbd36da

Please sign in to comment.