import board
import analogio
+
# Analog Outputs
def test_Ax_OUTPUT():
"""Test analog output pin functionality."""
for i, expected_value in enumerate(sine_wave):
assert pin_sine_wave.value == expected_value
-
# Run through the sine wave again to ensure it loops back correctly
for i, expected_value in enumerate(sine_wave):
assert pin_sine_wave.value == expected_value
for i in range(len(sawtooth_wave)):
assert pin_saw_wave.value == sawtooth_wave[i]
-
pin_saw_wave.deinit()
# SPDX-FileCopyrightText: 2024 Brent Rubell for Adafruit Industries
#
# SPDX-License-Identifier: MIT
-import pytest # pylint: disable=unused-import
+import pytest # pylint: disable=unused-import
import busio
from board import SCL, SDA
+
def test_i2c_scan_random():
i2c = busio.I2C(SCL, SDA)
i2c.try_lock()