pull/191/head
ZodiusInfuser 2021-08-17 13:43:42 +01:00
rodzic e045cb9615
commit 71e95805fa
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -10,7 +10,7 @@ UPDATES = 60
# WS2812 / NeoPixel™ LEDs
led_strip = plasma.WS2812(NUM_LEDS, 0, 0, 15)
# APA102 / DotStar™ LEDs
#led_strip = plasma.APA102(NUM_LEDS, 0, 0, 15, 14)
# led_strip = plasma.APA102(NUM_LEDS, 0, 0, 15, 14)
# Set up the ADC for reading current
sense = Analog(plasma.PIN_CURRENT_SENSE, plasma.ADC_GAIN, plasma.SHUNT_RESISTOR)
@ -30,5 +30,5 @@ while True:
# Display the current value once every second
print("Current =", sense.read_current(), "A")
count = 0
time.sleep(1.0 / UPDATES)