]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - examples/generic_aio.py
pylinten
[Adafruit_Blinka-hackapet.git] / examples / generic_aio.py
index 9a8cf77d0704011821854e4bd66d29e3898a4bde..8e6c9c12e0280a32ff90025cf9f3101b309bdf92 100644 (file)
@@ -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"