Cable Send Number
Send a number value to another Adafruit Circuit Playground Express using a cable.
network.cableSendNumber(0);
The cable transmitter on your board will send a number as part of a data message signaled by pulses. If another Adafruit Circuit Playground Express is waiting to receive an cable message, it will get this number in the data message it receives.
Parameters
- value: the number to send to another Adafruit Circuit Playground Express using a cable.
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 i = 0; i <= 9; i++) {
network.cableSendNumber(i);
pause(500);
}
See also
cable