Implement struct generator
Opened this issue · 0 comments
Converting an infrared remote .cf file into the appropriate structure is currently an error-prone and manual task. It would be better if we could build a program or a script to do this. The best script would support Linux, Windows, and Mac all natively!
The program should:
- Receive a .cf file path as an input
- Parse and convert the input into the appropriate C structures (either a
const LircRemote
structure or aconst unsigned short raw_codes[]
array).
Input examples:
Kanto YU5 Speakers. https://github.com/dantler/infrared-remote-sketch/blob/master/cf_files/kanto_yu5.cf
Fedders Air Conditioning Unit: https://github.com/dantler/infrared-remote-sketch/blob/master/cf_files/fedders_aircon_config.cf
Output example:
Kanto YU5 speakers. https://github.com/dantler/infrared-remote-sketch/blob/master/sketch/main/main.ino#L14
Fedders Air Conditioning Unit: https://github.com/dantler/infrared-remote-sketch/blob/master/sketch/main/main.ino#L14