From 0194410dec079ba27d6e4af31aae1bfa528b922a Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Sat, 13 Apr 2024 10:56:39 +0100 Subject: [PATCH] Remove "ADC hack" The Raspberry Pi doesn't have any ADC pins on the GPIO header --- rpipins/__main__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/rpipins/__main__.py b/rpipins/__main__.py index c613cbe..7d9d684 100755 --- a/rpipins/__main__.py +++ b/rpipins/__main__.py @@ -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