Skip to content

Commit e7753e4

Browse files
authored
Merge pull request #16 from fpistm/pinnaming
Update pin name formatting. PXn -> PX_n
2 parents 2c61ba3 + 2138479 commit e7753e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/genpinmap/genpinmap_arduino.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def sort_my_lists():
561561
for s in itemlist:
562562
m = re.match(pinregex, s.attributes['Name'].value)
563563
if m:
564-
pin = m.group(0) # pin formatted P<port><number>: PFO
564+
pin = m.group(0)[:2] + '_' + m.group(0)[2:] # pin formatted P<port>_<number>: PF_O
565565
name = s.attributes['Name'].value.strip() # full name: "PF0 / OSC_IN"
566566
if s.attributes['Type'].value == "I/O":
567567
store_pin(pin, name)

0 commit comments

Comments
 (0)