Skip to content

Commit

Permalink
Remove "ADC hack"
Browse files Browse the repository at this point in the history
The Raspberry Pi doesn't have any ADC pins on the GPIO header
  • Loading branch information
lurch authored Apr 13, 2024
1 parent 5c6e5f5 commit 0194410
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions rpipins/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,6 @@ def styled(label, style, fg=None):
def search(pin, highlight):
if not highlight:
return False
# Hack to make "--find adc" also find A0, A1, etc
if highlight.lower() == "adc":
highlight += "|a[0-9]"
highlight = re.compile(highlight, re.I)
# Match search term against pin label
return re.search(highlight, pin) is not None
Expand Down

0 comments on commit 0194410

Please sign in to comment.