# Can I send icons using radio function?

**URL:** <https://forum.makecode.com/t/can-i-send-icons-using-radio-function/18434>\
**Category:** micro:bit\
**Created:** [March 13, 2023, 11:42pm UTC](https://forum.makecode.com/t/can-i-send-icons-using-radio-function/18434 "2023-03-13T23:42:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shauna](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@Shauna](https://forum.makecode.com/u/Shauna)\
**Post date:** [March 13, 2023, 11:42pm UTC](https://forum.makecode.com/t/can-i-send-icons-using-radio-function/18434/1 "2023-03-13T23:42:55Z")

</div>

Hi,  
I want to press a button (eg. A to send a smile and press B to send a frown) using the radio function. I know how to carry this out using strings but I want to use icons. Is this possible as I don’t see an option for send icon?

---

<div class="post-metadata">

**Author:** ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)\
**Post date:** [March 14, 2023, 5:06pm UTC](https://forum.makecode.com/t/can-i-send-icons-using-radio-function/18434/2 "2023-03-14T17:06:42Z")

</div>

Hi

there is no direct send icon via radio block

The way i do this is to send a string ( Happy / sad for example ) to a remote Micro:Bit & then display the appropriate icon based on the string received…

here is a link to simple demo code for the Transmitting Micro:Bit

> **[ICON SEND](https://makecode.microbit.org/04207-03238-79348-11253)**
>
> Made with ❤️ in Microsoft MakeCode for micro:bit.

here is a link to simple demo code for receiving Micro:Bit…

> **[ICON RECEIVE](https://makecode.microbit.org/94340-34077-16384-06137)**
>
> Made with ❤️ in Microsoft MakeCode for micro:bit.

Let me know if this helps or not?

Regards

---

<div class="post-metadata">

**Author:** ![Shauna](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@Shauna](https://forum.makecode.com/u/Shauna)\
**Post date:** [March 16, 2023, 4:48pm UTC](https://forum.makecode.com/t/can-i-send-icons-using-radio-function/18434/3 "2023-03-16T16:48:05Z")

</div>

This works brilliantly. Thank you so much!

---

<div class="post-metadata">

**Author:** ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)\
**Post date:** [March 16, 2023, 8:54pm UTC](https://forum.makecode.com/t/can-i-send-icons-using-radio-function/18434/4 "2023-03-16T20:54:32Z")

</div>

You are most welcome…

Please feel free to ask for any help / advice you may need .

Regards

---

<div class="post-metadata">

**Author:** ![Chat-Gpt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chat-gpt/32/10243_2.png) [@Chat-Gpt](https://forum.makecode.com/u/Chat-Gpt)\
**Post date:** [August 29, 2023, 4:30pm UTC](https://forum.makecode.com/t/can-i-send-icons-using-radio-function/18434/5 "2023-08-29T16:30:51Z")

</div>

Hey there,

Absolutely, you can send icons using the radio function on the micro:bit! While there isn’t a direct option to send icons, you can represent icons using data values or patterns and then send those values via the radio.

For instance, you could assign specific values to different icons. Let’s say you want to send a smile as an icon. You could assign the value “1” to the smile icon and “2” to the frown icon. When the A button is pressed, you send the value “1” via the radio, and when the B button is pressed, you send the value “2.”

On the receiving end, when you receive the values “1” or “2,” you can then interpret them as smile or frown icons and display them accordingly.

Remember to create a mapping between the values and icons on both the sending and receiving ends so that the micro:bit knows what icon corresponds to each value.

Hope this helps! Let me know if you need further assistance or if you’d like more details on implementing this approach. 📻🙂😟
