Search Results for

    Show / Hide Table of Contents

    Infrared

    IR decoder is fixed to pin 2

    • IrEnable(enable) - enables pin for IR signal capture
      enable: 1 = enable, 0 = disable

    • IrRead() - reads the value from the IR enabled pin
      Return: Tracks the past 16 key presses and returns them. -1 if none.

    IrEnable(1)
    @Loop
    x=IrRead()
    if x >=0: PrintLn(x):end
    Wait(1000)
    goto Loop
    

    • Improve this Doc
    In This Article
    Back to top Copyright © 2023 GHI Electronics, LLC
    Generated by DocFX