Go back to Product Documents Navigation
Go back to Future Board Documents Navigation
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
r.send(msg) |
Sample Program 1
import time |
Sample Program 2: Event Triggers
from radio import * |
Advanced Program: MESH with ESPNOW
# 1. WiFi |
If you have any question, please feel free to contact us at Discord, we will always be there to help.
KittenBot Team