add single channel versions for adafruit breakout
This commit is contained in:
parent
f728a96a6a
commit
95f8b6cb22
1 changed files with 2 additions and 2 deletions
|
|
@ -174,8 +174,8 @@ while True:
|
|||
value = read(SAMPLE_AVG)
|
||||
mass_grams = round(value * CALIB_RATIO_1, 1)
|
||||
mass_ounces = round(mass_grams * 0.03527, 2)
|
||||
grams_value.text = (f"{mass_grams:5.1f}")
|
||||
ounces_value.text = (f"{mass_ounces:5.2f}")
|
||||
grams_value.text = f"{mass_grams:5.1f}"
|
||||
ounces_value.text = f"{mass_ounces:5.2f}"
|
||||
|
||||
bubble.y = int(map_range(mass_grams, min_gr, MAX_GR, 240, 0)) - 10
|
||||
if mass_grams > MAX_GR or mass_grams < min_gr:
|
||||
|
|
|
|||
Loading…
Reference in a new issue