X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/e581ddf6e329e49b0c7c48c3c0ac967aa6a30571..3d15d80420f6f61a17bf7e9c00a97863b4d96bb3:/examples/generic_aio.py diff --git a/examples/generic_aio.py b/examples/generic_aio.py index 9a8cf77..8e6c9c1 100644 --- a/examples/generic_aio.py +++ b/examples/generic_aio.py @@ -1,9 +1,11 @@ +# SPDX-FileCopyrightText: 2024 Brent Rubell for Adafruit Industries +# +# SPDX-License-Identifier: MIT import pytest import board import analogio # Analog Outputs - def test_Ax_OUTPUT(): """Test analog output pin functionality.""" assert board.board_id == "GENERIC_AGNOSTIC_BOARD" @@ -17,6 +19,7 @@ def test_Ax_OUTPUT(): pin_out.deinit() + # Analog Inputs # Values for sine wave @@ -69,6 +72,7 @@ sawtooth_wave = [ 80, ] + def test_Ax_INPUT_RAND_INT(): """Test random integer from pin Ax_INPUT_RAND_INT""" assert board.board_id == "GENERIC_AGNOSTIC_BOARD"