Skip to content

Latest commit

 

History

History
75 lines (41 loc) · 929 Bytes

ir.rst

File metadata and controls

75 lines (41 loc) · 929 Bytes

IR Unit

Support the following products:

Micropython Example:

import os, sys, io
import M5
from M5 import *
from unit import *

ir_0 = None

def setup():
global ir_0

ir_0 = IR((36, 26))
ir_0.tx(0, 0)
M5.begin()
Widgets.fillScreen(0x222222)

UIFLOW2 Example:

builder_html

class IR

Constructors

Create an IR object.

The parameters is:
  • IO1,IO2 Receive and transmit pin definitions.

UIFLOW2:

Methods

ir.tx()

Sends an ir signal value to an address.

UIFLOW2:

ir.rx_event()

Determine when the infrared signal is read and start to do some processing procedures.

UIFLOW2: