项目作者: gharishkumar

项目描述 :
Add IR remote as input to any PC Decoding NEC protocol IR pulses from remote control with a Pico and perform keypress as a USB keyboard (HID).
高级语言: C
项目地址: git://github.com/gharishkumar/pico-ir-keyboard.git
创建时间: 2021-07-22T16:26:54Z
项目社区:https://github.com/gharishkumar/pico-ir-keyboard

开源协议:

下载


pico-ir-keyboard

Add IR remote as input to any PC

  • Decoding NEC protocol IR pulses from remote control with a Pico and perform keypress as a USB keyboard (HID).

    To compile pico-ir-keyboard

  1. Set up your PC to point to use the Raspberry Pi Pico SDK, follow README in Raspberry Pi Pico SDK.
  2. Clone this GitHub repo
    1. $ git clone https://github.com/gharishkumar/pico-ir-keyboard.git
  3. Change to pico-ir-keyboard directory.
    1. $ cd pico-ir-keyboard
  4. Setup a CMake build directory.
    For example, if not using an IDE:
    1. $ mkdir build
    2. $ cd build
    3. $ cmake ..
  5. Make your target from the build directory you created.
    1. $ make -j4
  6. You now have pico_ir_keyboard.elf to load via a debugger, or pico_ir_keyboard.uf2 that can be installed and run on your Raspberry Pi Pico via drag and drop.

    NOTE :

    • IR rx pin, IR command (or) Keyboard keycode can be customised in pico-ir-keyboard/src/main.c.
    • By default GP27 is set as INPUT.

      Back story

  1. Try old python code.
  2. Search for Pico specific code.
  3. Changing the old code to C.
    • As USB HID support is available in Arduino IDE, I convert that old Python code to C.
    • It didn’t work either.
  4. Trying with PIO.