From 255ba963c624b980332960bf7434f1b39170d852 Mon Sep 17 00:00:00 2001 From: enriquezgarc Date: Thu, 29 Feb 2024 16:37:24 +0100 Subject: [PATCH] tests/psoc6: Deleted tests now covered in hw_ext. Signed-off-by: enriquezgarc --- tests/psoc6/i2c_hard.py | 16 ---------------- tests/psoc6/i2c_hard.py.exp | 1 - tests/psoc6/i2c_soft.py | 16 ---------------- tests/psoc6/i2c_soft.py.exp | 1 - tests/psoc6/pin.py | 34 ---------------------------------- tests/psoc6/pin.py.exp | 4 ---- tests/psoc6/pwm.py | 17 ----------------- tests/psoc6/pwm.py.exp | 4 ---- 8 files changed, 93 deletions(-) delete mode 100644 tests/psoc6/i2c_hard.py delete mode 100644 tests/psoc6/i2c_hard.py.exp delete mode 100644 tests/psoc6/i2c_soft.py delete mode 100644 tests/psoc6/i2c_soft.py.exp delete mode 100644 tests/psoc6/pin.py delete mode 100644 tests/psoc6/pin.py.exp delete mode 100644 tests/psoc6/pwm.py delete mode 100644 tests/psoc6/pwm.py.exp diff --git a/tests/psoc6/i2c_hard.py b/tests/psoc6/i2c_hard.py deleted file mode 100644 index e818af7091351..0000000000000 --- a/tests/psoc6/i2c_hard.py +++ /dev/null @@ -1,16 +0,0 @@ -### I2C -import os -from machine import I2C - -# Allocate pin based on board -machine = os.uname().machine -if "CY8CPROTO-062-4343W" in machine: - scl_pin = "P6_0" - sda_pin = "P6_1" -elif "CY8CPROTO-063-BLE" in machine: - scl_pin = "P6_4" - sda_pin = "P6_5" - -i2c = I2C(scl=scl_pin, sda=sda_pin, freq=400000) - -print(i2c.scan()) diff --git a/tests/psoc6/i2c_hard.py.exp b/tests/psoc6/i2c_hard.py.exp deleted file mode 100644 index fe51488c7066f..0000000000000 --- a/tests/psoc6/i2c_hard.py.exp +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/tests/psoc6/i2c_soft.py b/tests/psoc6/i2c_soft.py deleted file mode 100644 index 4178f19363a93..0000000000000 --- a/tests/psoc6/i2c_soft.py +++ /dev/null @@ -1,16 +0,0 @@ -#### SoftI2C -import os -from machine import SoftI2C - -# Allocate pin based on board -machine = os.uname().machine -if "CY8CPROTO-062-4343W" in machine: - scl_pin = "P6_0" - sda_pin = "P6_1" -elif "CY8CPROTO-063-BLE" in machine: - scl_pin = "P6_4" - sda_pin = "P6_5" - -si2c = SoftI2C(scl=scl_pin, sda=sda_pin, freq=400000) - -print(si2c.scan()) diff --git a/tests/psoc6/i2c_soft.py.exp b/tests/psoc6/i2c_soft.py.exp deleted file mode 100644 index fe51488c7066f..0000000000000 --- a/tests/psoc6/i2c_soft.py.exp +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/tests/psoc6/pin.py b/tests/psoc6/pin.py deleted file mode 100644 index 8c7ba1574ef9e..0000000000000 --- a/tests/psoc6/pin.py +++ /dev/null @@ -1,34 +0,0 @@ -import os -from machine import Pin -import time -import machine - -# Allocate pin based on board -machine = os.uname().machine -if "CY8CPROTO-062-4343W" in machine: - pin1_name = "P13_7" - pin2_name = "P0_4" -elif "CY8CPROTO-063-BLE" in machine: - pin1_name = "P6_3" - pin2_name = "P0_4" - -# Tests for Output pin -# Instantiate output pin for led operation -# Constr -p1 = Pin(pin1_name) -p1.init(Pin.OUT) - -p1.value(0) # Led glows -print(p1.value()) # None - -p1.off() # Switches off led -print(p1.off()) # None - -p1.value(False) # Led glows -print(p1.value()) # None - -# Tests for Input pin -# Instantiate input pin for button operation -p2 = Pin(pin2_name, Pin.IN) -p2.value() -print(p2.value()) # 1 - button is released diff --git a/tests/psoc6/pin.py.exp b/tests/psoc6/pin.py.exp deleted file mode 100644 index 37df6a5b2f327..0000000000000 --- a/tests/psoc6/pin.py.exp +++ /dev/null @@ -1,4 +0,0 @@ -None -None -None -1 diff --git a/tests/psoc6/pwm.py b/tests/psoc6/pwm.py deleted file mode 100644 index 16aeafa992207..0000000000000 --- a/tests/psoc6/pwm.py +++ /dev/null @@ -1,17 +0,0 @@ -### PWM -import os -from machine import PWM - -# Allocate pin based on board -machine = os.uname().machine -if "CY8CPROTO-062-4343W" in machine: - pin_name = "P12_0" -elif "CY8CPROTO-063-BLE" in machine: - pin_name = "P6_3" - -pwm = PWM(pin_name, freq=50, duty_u16=8192) -print(pwm) -print(pwm.freq()) -print(pwm.duty_u16()) -pwm.duty_ns(1000) -print(pwm.duty_ns()) diff --git a/tests/psoc6/pwm.py.exp b/tests/psoc6/pwm.py.exp deleted file mode 100644 index e74c028c06a33..0000000000000 --- a/tests/psoc6/pwm.py.exp +++ /dev/null @@ -1,4 +0,0 @@ -frequency=50 duty_cycle=8192.000000 -50 -8192.0 -1000.0