Skip to content

Commit

Permalink
"Add ubluetooth."
Browse files Browse the repository at this point in the history
  • Loading branch information
hlovatt committed Mar 10, 2021
1 parent b4611aa commit 5db2d7d
Show file tree
Hide file tree
Showing 15 changed files with 293 additions and 20 deletions.
2 changes: 1 addition & 1 deletion btree.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
__author__ = rst.__author__
__copyright__ = rst.__copyright__
__license__ = rst.__license__
__version__ = "3.4.0" # Version set by https://github.com/hlovatt/tag2ver
__version__ = "3.5.0" # Version set by https://github.com/hlovatt/tag2ver


def btree(shed: RST2PyI) -> None:
Expand Down
2 changes: 1 addition & 1 deletion class_.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
__author__ = rst.__author__
__copyright_ = rst.__copyright__
__license__ = rst.__license__
__version__ = "3.4.0" # Version set by https://github.com/hlovatt/tag2ver
__version__ = "3.5.0" # Version set by https://github.com/hlovatt/tag2ver


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion framebuf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
__author__ = rst.__author__
__copyright__ = rst.__copyright__
__license__ = rst.__license__
__version__ = "3.4.0" # Version set by https://github.com/hlovatt/tag2ver
__version__ = "3.5.0" # Version set by https://github.com/hlovatt/tag2ver


def framebuf(shed: RST2PyI) -> None:
Expand Down
11 changes: 5 additions & 6 deletions lcd160cr.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@
__author__ = rst.__author__
__copyright__ = rst.__copyright__
__license__ = rst.__license__
__version__ = "3.4.0" # Version set by https://github.com/hlovatt/tag2ver
__version__ = "3.5.0" # Version set by https://github.com/hlovatt/tag2ver


def lcd160cr(shed: RST2PyI) -> None:
module_post_doc = f'''
shed.module(
name='lcd160cr',
old='control of LCD160CR display',
post_doc=f'''
from typing import overload, Any, Union, Tuple, TypeVar, Optional
from pyb import Pin, I2C, SPI
Expand All @@ -25,10 +28,6 @@ def lcd160cr(shed: RST2PyI) -> None:
{repdefs.AnyReadableBuf}
'''
shed.module(
name='lcd160cr',
old='control of LCD160CR display',
post_doc=module_post_doc,
)
shed.pyi.doc += shed.extra_notes(end='class LCD160CR',)
shed.consume_header_line(and_preceding_lines=True)
Expand Down
2 changes: 1 addition & 1 deletion machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
__author__ = rst.__author__
__copyright__ = rst.__copyright__
__license__ = rst.__license__
__version__ = "3.4.0" # Version set by https://github.com/hlovatt/tag2ver
__version__ = "3.5.0" # Version set by https://github.com/hlovatt/tag2ver


def machine(shed: RST2PyI) -> None:
Expand Down
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
from pyb import pyb
from rst2pyi import RST2PyI
from uarray import uarray
from ubluetooth import ubluetooth

__author__ = rst.__author__
__copyright_ = rst.__copyright__
__license__ = rst.__license__
__version__ = "3.4.0" # Version set by https://github.com/hlovatt/tag2ver
__version__ = "3.5.0" # Version set by https://github.com/hlovatt/tag2ver


def main() -> None:
Expand All @@ -33,6 +34,7 @@ def main() -> None:
assert len(argv) > 1, 'No destination directory given.' + usage
assert len(argv) == 2, 'Extra argument(s) given.' + usage
shed = RST2PyI(output_dir=argv[1])
ubluetooth(shed)
network(shed)
micropython(shed)
framebuf(shed)
Expand Down
2 changes: 1 addition & 1 deletion micropython.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
__author__ = rst.__author__
__copyright__ = rst.__copyright__
__license__ = rst.__license__
__version__ = "3.4.0" # Version set by https://github.com/hlovatt/tag2ver
__version__ = "3.5.0" # Version set by https://github.com/hlovatt/tag2ver


def micropython(shed: RST2PyI) -> None:
Expand Down
2 changes: 1 addition & 1 deletion network.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
__author__ = rst.__author__
__copyright__ = rst.__copyright__
__license__ = rst.__license__
__version__ = "3.4.0" # Version set by https://github.com/hlovatt/tag2ver
__version__ = "3.5.0" # Version set by https://github.com/hlovatt/tag2ver


def network(shed: RST2PyI) -> None:
Expand Down
2 changes: 1 addition & 1 deletion pyb.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
__author__ = rst.__author__
__copyright__ = rst.__copyright__
__license__ = rst.__license__
__version__ = "3.4.0" # Version set by https://github.com/hlovatt/tag2ver
__version__ = "3.5.0" # Version set by https://github.com/hlovatt/tag2ver


def pyb(shed: RST2PyI) -> None:
Expand Down
2 changes: 1 addition & 1 deletion pyi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
__author__ = rst.__author__
__copyright_ = rst.__copyright__
__license__ = rst.__license__
__version__ = "3.4.0" # Version set by https://github.com/hlovatt/tag2ver
__version__ = "3.5.0" # Version set by https://github.com/hlovatt/tag2ver


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion repdefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
__author__ = rst.__author__
__copyright_ = rst.__copyright__
__license__ = rst.__license__
__version__ = "3.4.0" # Version set by https://github.com/hlovatt/tag2ver
__version__ = "3.5.0" # Version set by https://github.com/hlovatt/tag2ver

AbstractBlockDev = '''
@runtime_checkable
Expand Down
2 changes: 1 addition & 1 deletion rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__author__ = "Howard C Lovatt"
__copyright__ = "Howard C Lovatt, 2020 onwards."
__license__ = "MIT https://opensource.org/licenses/MIT (as used by MicroPython)."
__version__ = "3.4.0" # Version set by https://github.com/hlovatt/tag2ver
__version__ = "3.5.0" # Version set by https://github.com/hlovatt/tag2ver


@dataclass
Expand Down
4 changes: 2 additions & 2 deletions rst2pyi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
__author__ = rst.__author__
__copyright__ = rst.__copyright__
__license__ = rst.__license__
__version__ = "3.4.0" # Version set by https://github.com/hlovatt/tag2ver
__version__ = "3.5.0" # Version set by https://github.com/hlovatt/tag2ver


@dataclass
Expand Down Expand Up @@ -146,7 +146,7 @@ def module(
__author__ = "{rst.__author__}"
__copyright__ = "{rst.__copyright__}"
__license__ = "{rst.__license__}"
__version__ = "3.4.0" # Version set by https://github.com/hlovatt/tag2ver
__version__ = "3.5.0" # Version set by https://github.com/hlovatt/tag2ver
{post_doc}
Expand Down
2 changes: 1 addition & 1 deletion uarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
__author__ = rst.__author__
__copyright__ = rst.__copyright__
__license__ = rst.__license__
__version__ = "3.4.0" # Version set by https://github.com/hlovatt/tag2ver
__version__ = "3.5.0" # Version set by https://github.com/hlovatt/tag2ver


def uarray(shed: RST2PyI) -> None:
Expand Down
Loading

0 comments on commit 5db2d7d

Please sign in to comment.