DeqingSun / ch55xduino

An Arduino-like programming API for the CH55X
GNU Lesser General Public License v2.1
448 stars 86 forks source link

Feature request: InfraRed Encoder/Decoder. #156

Open happytm opened 10 months ago

happytm commented 10 months ago

Thank you for sharing your great project.

Wireless communication could be very useful for Home Automation use case with very simple hardware. Most of electronics around house can be controlled by IR with simple and low cost hardware.

I was searching for IR transmitter solution for CH552G but could not find any. But came across a repository which implements IR transmitter for ATTiny13A micro controller and goes into detail of it's functionality. I think he uses timer functionality of ATTiny13A to create any custom IR protocol codes. The repository is linked below:

https://github.com/wagiminator/ATtiny13-TinyRemote?tab=readme-ov-file

He also have IR receiver implemented on ATTiny13A chip in another repository:

https://github.com/wagiminator/ATtiny13-TinyDecoder

His blog linked below is treasure trove for ATTiny devices:

http://www.technoblogy.com/show?24A9

This can make very useful in wireless low cost home automation system.

Is it possible to port this for CH552G microcontroller?

Thank you.