Skip to content

Commit

Permalink
Python interface version 1.1.0
Browse files Browse the repository at this point in the history
Revised atc_mi_config

atc_mi_config -s sends the hex byte sequence defined in the subsequent argument

Revised atc_mi_configuration API (from atc_mi_interface.atc_mi_config import atc_mi_configuration)

Updating README on how to read and update single values

Allow sending a number of six digits to the LCD display
  • Loading branch information
Ircama committed Oct 14, 2023
1 parent 899a6ca commit 43dabe8
Show file tree
Hide file tree
Showing 8 changed files with 519 additions and 91 deletions.
334 changes: 307 additions & 27 deletions python-interface/README.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion python-interface/atc_mi_interface/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@

from .atc_mi_construct import *
from .atc_mi_adv_format import atc_mi_advertising_format
from .atc_mi_config import atc_mi_configuration
10 changes: 10 additions & 0 deletions python-interface/atc_mi_interface/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from . import atc_mi_advertising
from . import atc_mi_config
from . import atc_mi_format_test
from .__version__ import __version__

def main():
parser = argparse.ArgumentParser(
Expand Down Expand Up @@ -41,8 +42,17 @@ def main():
dest='subhelp',
action='store_true',
help="Invoke the specific help of the selected tool")
parser.add_argument(
'-V',
"--version",
dest='version',
action='store_true',
help="Print version and exit")

args, unknown = parser.parse_known_args()
if args.version:
print(f'atc_mi_interface version {__version__}')
sys.exit(0)
if len(sys.argv) > 1:
sys.argv.pop(1)
if args.subhelp:
Expand Down
1 change: 1 addition & 0 deletions python-interface/atc_mi_interface/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.1.0" # Format: A.B.C.postN
12 changes: 11 additions & 1 deletion python-interface/atc_mi_interface/atc_mi_advertising.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# atc_mi_advertising.py
#############################################################################

import sys
import logging
import argparse

Expand All @@ -13,7 +14,7 @@

from .atc_mi_adv_format import atc_mi_advertising_format
from . import construct_module

from .__version__ import __version__

class AtcMiConstructFrame(wx.Frame):
icon_image = PyEmbeddedImage(
Expand Down Expand Up @@ -116,7 +117,16 @@ def main():
dest='inspectable',
action='store_true',
help="enable Inspection (Ctrl-Alt-I)")
parser.add_argument(
'-V',
"--version",
dest='version',
action='store_true',
help="Print version and exit")
args = parser.parse_args()
if args.version:
print(f'atc_mi_advertising version {__version__}')
sys.exit(0)
loadfile = None
if args.log_data_file:
loadfile = args.log_data_file
Expand Down
Loading

0 comments on commit 43dabe8

Please sign in to comment.