Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
c0e39864
Commit
c0e39864
authored
Aug 03, 2015
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stmhal: Fix make-pins.py to allow Port K.
Thanks to Dave Hylands for the patch.
parent
6e552e15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
stmhal/boards/make-pins.py
stmhal/boards/make-pins.py
+2
-2
No files found.
stmhal/boards/make-pins.py
View file @
c0e39864
...
...
@@ -32,8 +32,8 @@ def parse_port_pin(name_str):
raise
ValueError
(
"Expecting pin name to be at least 3 charcters."
)
if
name_str
[
0
]
!=
'P'
:
raise
ValueError
(
"Expecting pin name to start with P"
)
if
name_str
[
1
]
<
'A'
or
name_str
[
1
]
>
'
J
'
:
raise
ValueError
(
"Expecting pin port to be between A and
J
"
)
if
name_str
[
1
]
<
'A'
or
name_str
[
1
]
>
'
K
'
:
raise
ValueError
(
"Expecting pin port to be between A and
K
"
)
port
=
ord
(
name_str
[
1
])
-
ord
(
'A'
)
pin_str
=
name_str
[
2
:]
if
not
pin_str
.
isdigit
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment