Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

microblocks_wifi_radio-0.6.0.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

microblocks_wifi_radio-0.6.0-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page