Programming with MicroPython: Wireless Radio

Import FutureBoard Library

Import the Library to make use of its functions.

from future import *

10: Wireless Radio

Import Radio Library

from radio import *

1. Initiate a Radio

r=Radio(trigger)

Define an event trigger function and call it in the trigger parameter to automatically call the function on receiving message.

2. Set the radio channel

r.channel=1

3. Read the channel feed

r.read()

Returns the message.

4. Publish a message to channel

Sample Program 1

Sample Program 2: Event Triggers

Advanced Program: MESH with ESPNOW

Last updated