Format Sensor Plotting
MODIFY
Sensor_Plotting_With_Mu_CircuitPython/buttons_switch.py
Sensor_Plotting_With_Mu_CircuitPython/buttons_switch.py
-import digitalio
-import board
import time
+import board
+import digitalio
+
button_a = digitalio.DigitalInOut(board.BUTTON_A)
button_a.direction = digitalio.Direction.INPUT
button_a.pull = digitalio.Pull.DOWN

MODIFY
Sensor_Plotting_With_Mu_CircuitPython/light.py
Sensor_Plotting_With_Mu_CircuitPython/light.py
+import time
+
import analogio
import board
-import time
light = analogio.AnalogIn(board.LIGHT)
while True:
- print((light.value,))
+ print(light.value)
time.sleep(0.1)

MODIFY
Sensor_Plotting_With_Mu_CircuitPython/potentiometer.py
Sensor_Plotting_With_Mu_CircuitPython/potentiometer.py
import time
+
import analogio
import board
potentiometer = analogio.AnalogIn(board.A1)
+
def get_voltage(pin):
return (pin.value * 3.3) / 65536
+
while True:
print((get_voltage(potentiometer),))
time.sleep(0.1)

MODIFY
Sensor_Plotting_With_Mu_CircuitPython/pulse.py
Sensor_Plotting_With_Mu_CircuitPython/pulse.py
-import neopixel
-import analogio
import time
+
+import analogio
import board
+import neopixel
pixels = neopixel.NeoPixel(board.NEOPIXEL, 10, brightness=1.0)
light = analogio.AnalogIn(board.LIGHT)

MODIFY
Sensor_Plotting_With_Mu_CircuitPython/touch.py
Sensor_Plotting_With_Mu_CircuitPython/touch.py
import time
+
import board
import touchio

Format Sensor Plotting