here is my code for my microbit in python
so i want to know how do i send the target_x and the target_y from the microbit 1 to the second microbit ?
microbit 1 :
radio.on()
target_x = random.randint(0,4)
target_y = random.randint(0,4)
if button_a.was.pressed():
radio.send()
microbit 2 :
radio.on()
order = radio.receive()
microbit.display.set_pixel(target_x,target_y,7)
so i want to know how do i send the target_x and the target_y from the microbit 1 to the second microbit ?
thanks for your answers