]> Repositories - hackapet/Adafruit_Blinka.git/blobdiff - examples/generic_aio.py
saw/sine are inputs, not outputs
[hackapet/Adafruit_Blinka.git] / examples / generic_aio.py
index b33102eb2e2a6961af767d576a1f36b493c22eaf..aa1df376e872691bfce1c8d6a4bf131914be3da2 100644 (file)
@@ -53,7 +53,7 @@ sawtooth_wave = [
 ]
 
 
 ]
 
 
-def test_ax_input_rand_int():
+def test_Ax_INPUT_RAND_INT():
     """Test random integer from pin Ax_INPUT_RAND_INT"""
     assert board.board_id == "GENERIC_AGNOSTIC_BOARD"
     pin_random = analogio.AnalogIn(board.Ax_INPUT_RAND_INT)
     """Test random integer from pin Ax_INPUT_RAND_INT"""
     assert board.board_id == "GENERIC_AGNOSTIC_BOARD"
     pin_random = analogio.AnalogIn(board.Ax_INPUT_RAND_INT)
@@ -63,7 +63,7 @@ def test_ax_input_rand_int():
     pin_random.deinit()
 
 
     pin_random.deinit()
 
 
-def test_ax_input_fixed_int_pi():
+def test_Ax_INPUT_FIXED_INT_PI():
     """Test fixed integer from pin Ax_INPUT_FIXED_INT_PI"""
     assert board.board_id == "GENERIC_AGNOSTIC_BOARD"
     pin_pi = analogio.AnalogIn(board.Ax_INPUT_FIXED_INT_PI)
     """Test fixed integer from pin Ax_INPUT_FIXED_INT_PI"""
     assert board.board_id == "GENERIC_AGNOSTIC_BOARD"
     pin_pi = analogio.AnalogIn(board.Ax_INPUT_FIXED_INT_PI)
@@ -73,10 +73,10 @@ def test_ax_input_fixed_int_pi():
     pin_pi.deinit()
 
 
     pin_pi.deinit()
 
 
-def test_ax_input_sine_wave():
-    """Test sine wave from pin Ax_OUTPUT_WAVE_SINE"""
+def test_Ax_INPUT_WAVE_SINE():
+    """Test sine wave from pin Ax_INPUT_WAVE_SINE"""
     assert board.board_id == "GENERIC_AGNOSTIC_BOARD"
     assert board.board_id == "GENERIC_AGNOSTIC_BOARD"
-    pin_sine_wave = analogio.AnalogIn(board.Ax_OUTPUT_WAVE_SINE)
+    pin_sine_wave = analogio.AnalogIn(board.Ax_INPUT_WAVE_SINE)
 
     # Run through the sine wave once
     for i in range(len(sine_wave)):
 
     # Run through the sine wave once
     for i in range(len(sine_wave)):
@@ -89,10 +89,10 @@ def test_ax_input_sine_wave():
     pin_sine_wave.deinit()
 
 
     pin_sine_wave.deinit()
 
 
-def test_ax_input_saw_wave():
-    """Test sawtooth wave from pin Ax_OUTPUT_WAVE_SAW"""
+def test_Ax_INPUT_WAVE_SAW():
+    """Test sawtooth wave from pin Ax_INPUT_WAVE_SAW"""
     assert board.board_id == "GENERIC_AGNOSTIC_BOARD"
     assert board.board_id == "GENERIC_AGNOSTIC_BOARD"
-    pin_sine_wave = analogio.AnalogIn(board.Ax_OUTPUT_WAVE_SAW)
+    pin_sine_wave = analogio.AnalogIn(board.Ax_INPUT_WAVE_SAW)
 
     # Run through the sine wave once
     for i in range(len(sawtooth_wave)):
 
     # Run through the sine wave once
     for i in range(len(sawtooth_wave)):