Skip to content

Add feature to encode and decode MakeCode's infrared pulses #26

Open
@kevinjwalters

Description

@kevinjwalters

MakeCode has its own IR protocol/encoding for sending a list of one or more 16 bit unsigned numbers. To allow MakeCode devices to communicate with CircuitPython it would be useful to implement this niche protocol. CircuitPython users may also like to use it.

The protocol is described by @mmoskal on https://makecode.com/blog/timing-adventures-in-infrared but the actual implementation in https://github.com/microsoft/pxt-common-packages/blob/master/libs/pulse/pulse.cpp differs slightly, the start of frame being obviously different, for example.

I think this would be best implemented in a separate file so it is only import'ed by those that wish to use it to avoid memory bloat.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions