Skip to content

Commit

Permalink
targets/blackpill: rework/fix pin config
Browse files Browse the repository at this point in the history
* Removed PB2 from button config - that pin is used by BOOT0 switch
* There are now 8 analog inputs and 8 digital inputs
  • Loading branch information
paradajz committed Dec 29, 2021
1 parent 4f42928 commit c529b1f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 22 deletions.
4 changes: 2 additions & 2 deletions config/hw-test/blackpill401.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ io:
- 5
switches-id:
- 0
- 7
- 3
analog-pins:
- 10
- 17
analog-id:
- 0
- 8
- 7
led-pins:
- 6
- 7
Expand Down
17 changes: 7 additions & 10 deletions config/target/blackpill401.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@
index: 0
-
port: "B"
index: 2
index: 0
-
port: "B"
index: 10
-
port: "B"
index: 12
port: "A"
index: 8
-
port: "B"
index: 13
index: 15
-
port: "B"
index: 14
-
port: "B"
index: 15
index: 13
-
port: "A"
index: 8
port: "B"
index: 12
analog:
type: "native"
pins:
Expand All @@ -63,9 +63,6 @@
-
port: "A"
index: 7
-
port: "B"
index: 0
-
port: "B"
index: 1
Expand Down
17 changes: 7 additions & 10 deletions config/target/blackpill411.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@
index: 0
-
port: "B"
index: 2
index: 0
-
port: "B"
index: 10
-
port: "B"
index: 12
port: "A"
index: 8
-
port: "B"
index: 13
index: 15
-
port: "B"
index: 14
-
port: "B"
index: 15
index: 13
-
port: "A"
index: 8
port: "B"
index: 12
analog:
type: "native"
pins:
Expand All @@ -63,9 +63,6 @@
-
port: "A"
index: 7
-
port: "B"
index: 0
-
port: "B"
index: 1
Expand Down

0 comments on commit c529b1f

Please sign in to comment.