infrared Send Number
Send a number value to another Adafruit Circuit Playground Express using the infrared transmitter.
network.infraredSendNumber(0);
The infrared transmitter on your board will send a number as part of a data message signaled by infrared light pulses. If another Adafruit Circuit Playground Express is waiting to receive an infrared signal, it will get this number in the data message it receives.
Parameters
- value: the number to send to another Adafruit Circuit Playground Express using infrared.
Example
Send the numbers 0
to 9
to another Adafruit Circuit Playground Express. Wait a little bit between each send to let the
receiving board think about the number it just got.
for (let irDataNumber = 0; irDataNumber <= 9; irDataNumber++) {
network.infraredSendNumber(irDataNumber);
pause(500);
}
See also
infrared