diff --git a/adafruit_boardtest/boardtest_gpio.py b/adafruit_boardtest/boardtest_gpio.py index a1b02b3..a8ddebb 100644 --- a/adafruit_boardtest/boardtest_gpio.py +++ b/adafruit_boardtest/boardtest_gpio.py @@ -125,27 +125,3 @@ def run_test(pins): # Else (no pins found) print("No GPIO pins found") return NA, [] - - -def _main(): - - # List out all the pins available to us - pins = list(dir(board)) - print() - print("All pins found:", end=" ") - - # Print pins - for pin in pins: - print(pin, end=" ") - print("\n") - - # Run test - result = run_test(pins) - print() - print(result[0]) - print("Pins tested: " + str(result[1])) - - -# Execute only if run as main.py or code.py -if __name__ == "__main__": - _main() diff --git a/adafruit_boardtest/boardtest_i2c.py b/adafruit_boardtest/boardtest_i2c.py index fb860ac..ea94feb 100644 --- a/adafruit_boardtest/boardtest_i2c.py +++ b/adafruit_boardtest/boardtest_i2c.py @@ -175,27 +175,3 @@ def run_test(pins, sda_pin=SDA_PIN_NAME, scl_pin=SCL_PIN_NAME): # Else (no pins found) print("No I2C pins found") return NA, [] - - -def _main(): - - # List out all the pins available to us - pins = list(dir(board)) - print() - print("All pins found:", end=" ") - - # Print pins - for pin in pins: - print(pin, end=" ") - print("\n") - - # Run test - result = run_test(pins) - print() - print(result[0]) - print("Pins tested: " + str(result[1])) - - -# Execute only if run as main.py or code.py -if __name__ == "__main__": - _main() diff --git a/adafruit_boardtest/boardtest_led.py b/adafruit_boardtest/boardtest_led.py index b8ff467..c41b282 100644 --- a/adafruit_boardtest/boardtest_led.py +++ b/adafruit_boardtest/boardtest_led.py @@ -109,27 +109,3 @@ def run_test(pins): # Else (no pins found) print("No LED pins found") return NA, [] - - -def _main(): - - # List out all the pins available to us - pins = list(dir(board)) - print() - print("All pins found:", end=" ") - - # Print pins - for pin in pins: - print(pin, end=" ") - print("\n") - - # Run test - result = run_test(pins) - print() - print(result[0]) - print("Pins tested: " + str(result[1])) - - -# Execute only if run as main.py or code.py -if __name__ == "__main__": - _main() diff --git a/adafruit_boardtest/boardtest_sd.py b/adafruit_boardtest/boardtest_sd.py index 94f19ac..b1820cf 100644 --- a/adafruit_boardtest/boardtest_sd.py +++ b/adafruit_boardtest/boardtest_sd.py @@ -146,27 +146,3 @@ def run_test( # Else (no pins found) print("No SD card pins found") return NA, [] - - -def _main(): - - # List out all the pins available to us - pins = list(dir(board)) - print() - print("All pins found:", end=" ") - - # Print pins - for pin in pins: - print(pin, end=" ") - print("\n") - - # Run test - result = run_test(pins) - print() - print(result[0]) - print("Pins tested: " + str(result[1])) - - -# Execute only if run as main.py or code.py -if __name__ == "__main__": - _main() diff --git a/adafruit_boardtest/boardtest_sd_cd.py b/adafruit_boardtest/boardtest_sd_cd.py index 9f16916..094cd92 100644 --- a/adafruit_boardtest/boardtest_sd_cd.py +++ b/adafruit_boardtest/boardtest_sd_cd.py @@ -86,27 +86,3 @@ def run_test(pins, cd_pin=SD_CD_PIN_NAME): # Else (no pins found) print("No CD pin found") return NA, [] - - -def _main(): - - # List out all the pins available to us - pins = list(dir(board)) - print() - print("All pins found:", end=" ") - - # Print pins - for pin in pins: - print(pin, end=" ") - print("\n") - - # Run test - result = run_test(pins) - print() - print(result[0]) - print("Pins tested: " + str(result[1])) - - -# Execute only if run as main.py or code.py -if __name__ == "__main__": - _main() diff --git a/adafruit_boardtest/boardtest_spi.py b/adafruit_boardtest/boardtest_spi.py index 2362ac5..d18133a 100644 --- a/adafruit_boardtest/boardtest_spi.py +++ b/adafruit_boardtest/boardtest_spi.py @@ -222,27 +222,3 @@ def run_test( # Else (no pins found) print("No SPI pins found") return NA, [] - - -def _main(): - - # List out all the pins available to us - pins = list(dir(board)) - print() - print("All pins found:", end=" ") - - # Print pins - for pin in pins: - print(pin, end=" ") - print("\n") - - # Run test - result = run_test(pins) - print() - print(result[0]) - print("Pins tested: " + str(result[1])) - - -# Execute only if run as main.py or code.py -if __name__ == "__main__": - _main() diff --git a/adafruit_boardtest/boardtest_uart.py b/adafruit_boardtest/boardtest_uart.py index 50a2784..b484bdf 100644 --- a/adafruit_boardtest/boardtest_uart.py +++ b/adafruit_boardtest/boardtest_uart.py @@ -98,27 +98,3 @@ def run_test(pins, tx_pin=TX_PIN_NAME, rx_pin=RX_PIN_NAME, baud_rate=BAUD_RATE): # Else (no pins found) print("No UART pins found") return NA, [] - - -def _main(): - - # List out all the pins available to us - pins = list(dir(board)) - print() - print("All pins found:", end=" ") - - # Print pins - for pin in pins: - print(pin, end=" ") - print("\n") - - # Run test - result = run_test(pins) - print() - print(result[0]) - print("Pins tested: " + str(result[1])) - - -# Execute only if run as main.py or code.py -if __name__ == "__main__": - _main() diff --git a/adafruit_boardtest/boardtest_voltage_monitor.py b/adafruit_boardtest/boardtest_voltage_monitor.py index 4390715..c56a782 100644 --- a/adafruit_boardtest/boardtest_voltage_monitor.py +++ b/adafruit_boardtest/boardtest_voltage_monitor.py @@ -89,27 +89,3 @@ def run_test(pins): # Else (no pins found) print("No battery monitor pins found") return NA, [] - - -def _main(): - - # List out all the pins available to us - pins = list(dir(board)) - print() - print("All pins found:", end=" ") - - # Print pins - for pin in pins: - print(pin, end=" ") - print("\n") - - # Run test - result = run_test(pins) - print() - print(result[0]) - print("Pins tested: " + str(result[1])) - - -# Execute only if run as main.py or code.py -if __name__ == "__main__": - _main()