Skip to content

Commit

Permalink
Line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
ZodiusInfuser committed Oct 14, 2024
1 parent a1636ae commit 88cf9f6
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions examples/read_all.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import time

from machine import I2C

from qwstpad import QwSTPad

"""
"""

# Constants
SLEEP = 0.1 # The time between each reading of the buttons

# Create the I2C instance and pass that to the QwSTPad
i2c = I2C(0, scl=13, sda=12)
qwstpad = QwSTPad(i2c)

# Loop forever
while True:
# Read all the buttons from the qwstpad and print them out
buttons = qwstpad.read_buttons()
for key, value in buttons.items():
print(f"{key} = {value:n}", end=", ")
print()

time.sleep(SLEEP)
import time

from machine import I2C

from qwstpad import QwSTPad

"""
"""

# Constants
SLEEP = 0.1 # The time between each reading of the buttons

# Create the I2C instance and pass that to the QwSTPad
i2c = I2C(0, scl=13, sda=12)
qwstpad = QwSTPad(i2c)

# Loop forever
while True:
# Read all the buttons from the qwstpad and print them out
buttons = qwstpad.read_buttons()
for key, value in buttons.items():
print(f"{key} = {value:n}", end=", ")
print()

time.sleep(SLEEP)

0 comments on commit 88cf9f6

Please sign in to comment.