Skip to content

Commit d1c3bc0

Browse files
committed
Merge branch 'development'
2 parents ec7b8b2 + c2469b7 commit d1c3bc0

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ This code may also be used with [circuitpython](https://circuitpython.org/), how
123123

124124
### apprunner
125125

126-
This is a wrapper program the selects the command line parameters and chooses a connector. It establishes a module for the BT82x API library and then calls the example program with the graphics descriptor (`gd`) and EVE definitions (`eve`) setup.
126+
This is a wrapper program that selects the command line parameters and chooses a connector. It establishes a module for the BT82x API library and then calls the example program with the graphics descriptor (`gd`) and EVE definitions (`eve`) setup.
127127

128128
### bteve2
129129

connectors/ft4222module.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ def recv(n):
167167
parser = argparse.ArgumentParser(description="ft4222 module")
168168
parser.add_argument("--mode", help="spi mode", default="0") # 0: single, 1: dual, 2: quad
169169
(args, rem) = parser.parse_known_args(sys.argv[1:])
170+
# Extract --mode and keep the rest in sys.argv
171+
sys.argv = [sys.argv[0]] + rem
170172

171173
if args.mode:
172174
spi_mode = int(args.mode, 0)

simple.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ def simple(gd):
2727
parser = argparse.ArgumentParser(description="EVE simple demo")
2828
parser.add_argument("text", help="text to write")
2929
parser.add_argument("--font", help="font number", default="24")
30-
parser.add_argument("--mode", help="spi mode", default="0")
3130
args = parser.parse_args(sys.argv[1:])
3231

3332
if args.font:

0 commit comments

Comments
 (0)