TLDR: building a wireless IR transmitter, need help using built-in radio capability for two micro:bits to communicate while one of the units is programmed using Arduino IDE instead of MakeCode.
STORY (not required to understand my problem):
I’ve been tinkering with micro:bits for a while and have managed to build some nice-looking IR transmitters, each powered by one micro:bit controller (see picture). I want to control some of my home appliances from PC using micro:bits over IR and mostly my system already works except for my air conditioner which uses longer IR commands.
I have decoded those commands. I have got raw IR data from my A/C’s IR remote and decoded each command into a hex string. However, these commands are MUCH longer than any available MakeCode IR extension can handle.
E.g. while a standard NEC IR code looks like this: 0xC160008E;
a decoded A/C command from my A/C remote looks like this: 0x182c14092000100000000300000d980400000000
They work perfectly when trasmitted raw using Arduino UNO (checked that), but this A/C IR module is my last, so I don’t wanna switch and scrap all my work.
I understand that MakeCode won’t let me send neither “long” datagrams nor raw IR data whatever IR-related extension I choose (there aren’t many anyway), so I want to use Arduino IDE with some libraries to do this.
I have no idea as to how to make a micro:bit unit programmed with Arduino IDE understand radio data transmitted by another micro:bit unit. I know how to read and write pins, use led matrix and stuff, but I can’t use its radio capability.
How can I send, say, one number from one unit and have it received on the other one with Arduino IDE?
I know this should be possible, because I got this script working fine, but I don’t get any consistent results with it. I can tell WHEN there is a transmission, but I can’t tell WHAT is being transmitted.