let wert = 1
input.onGesture(Gesture.Shake, () => {
wert = wert + 1
radio.sendNumber(wert)
})
radio.onDataPacketReceived(({receivedNumber}) => {
basic.showNumber(receivedNumber)
})
let item = 0Siehe auch: HF-Detektor für 2,4 GHz
input.onButtonPressed(Button.A, () => {
item = pins.analogReadPin(AnalogPin.P0)
radio.sendNumber(item)
})
radio.onDataPacketReceived(({receivedNumber}) => {
serial.writeNumber(receivedNumber)
basic.showNumber(receivedNumber)
})