pytest_sdm_led_example.py 530 B

123456789101112131415161718
  1. # SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
  2. # SPDX-License-Identifier: CC0-1.0
  3. import pytest
  4. from pytest_embedded import Dut
  5. @pytest.mark.esp32
  6. @pytest.mark.esp32s2
  7. @pytest.mark.esp32s3
  8. @pytest.mark.esp32c3
  9. @pytest.mark.esp32c6
  10. @pytest.mark.esp32h2
  11. @pytest.mark.generic
  12. def test_sdm_led_example(dut: Dut) -> None:
  13. dut.expect_exact('sdm_led: Install sigma delta channel')
  14. dut.expect_exact('sdm_led: Enable sigma delta channel')
  15. dut.expect_exact('sdm_led: Change duty cycle continuously')