wwj718 / microblocks_wifi_radio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WiFi Radio

This package works with MicroBlocks WiFi Radio library.

Install

pip install microblocks_wifi_radio

Usage

import time
from microblocks_wifi_radio import Radio
r = Radio()
r.send_number(123)
time.sleep(1)
r.send_string("hello")
time.sleep(1)
r.send_pair("light", 10)

while True:
    time.sleep(0.01)
    if r.message_received():
        print(r.last_number)
        print(r.last_string)

MicroBlocks Demo

Note

Most code is written by GPT4: GPT4 translated the MicroBlocks code

About


Languages

Language:Python 100.0%