9. Case 07: Wireless Communication#

9.1. Purpose#


  • Use the Smart Coding Kit to send signals.

9.2. Materials#


  • 2 x smart coding kits

../../_images/smart_coding_kit_case_07_01.png

9.3. Software#


MicroSoftmakecode

9.4. Programming#


Step 1#

  • Sending end

  • Show icon

  • Set the wireless group

  • Send number 1 when button A being pressed

  • Send number 2 when button B being pressed

    ../../_images/smart_coding_kit_case_07_02.png

Step 2#

  • Receiving end

  • Show icon

  • Set the wireless group

  • Save the received number as variable i

  • Judge the received number and display the icon accordingly.

    ../../_images/smart_coding_kit_case_07_03.png

9.5. Result#


  • While button A or B in the sending end being pressed, an icon of or × displays on the receiving end.

9.6. Exploration#


9.7. FAQ#


9.8. Relevant File#