diff -r 000000000000 -r b3daa2ebea2f Microbit/radio.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Microbit/radio.py Sat Aug 24 17:04:25 2019 +0200 @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module containing stubs for API generation of the 'radio' module. +""" + +RATE_250KBIT = 0 +RATE_1MBIT = 0 +RATE_2MBIT = 0 + +def on(): + pass + +def off(): + pass + +def config(length=32, queue=3, channel=7, power=6, address=0x75626974, group=0, + data_rate=RATE_1MBIT): + pass + +def reset(): + pass + +def send_bytes(message): + pass + +def receive_bytes(): + pass + +def receive_bytes_into(buffer): + pass + +def send(message): + pass + +def receive(): + pass + +def receive_full(): + pass