mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 20:54:24 +00:00
example: update ir nec example with new rmt driver
This commit is contained in:
19
examples/peripherals/rmt/ir_nec_transceiver/pytest_ir_nec.py
Normal file
19
examples/peripherals/rmt/ir_nec_transceiver/pytest_ir_nec.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
import pytest
|
||||
from pytest_embedded import Dut
|
||||
|
||||
|
||||
@pytest.mark.esp32
|
||||
@pytest.mark.ir_transceiver
|
||||
def test_ir_nec_example(dut: Dut) -> None:
|
||||
dut.expect_exact('example: create RMT RX channel')
|
||||
dut.expect_exact('example: register RX done callback')
|
||||
dut.expect_exact('example: create RMT TX channel')
|
||||
dut.expect_exact('example: modulate carrier to TX channel')
|
||||
dut.expect_exact('example: install IR NEC encoder')
|
||||
dut.expect_exact('example: enable RMT TX and RX channels')
|
||||
dut.expect_exact('NEC frame start---')
|
||||
dut.expect_exact('---NEC frame end: Address=0440, Command=3003')
|
||||
dut.expect_exact('---NEC frame end: Address=0440, Command=3003')
|
Reference in New Issue
Block a user