Skip to content

Commit

Permalink
extract out common constants to the common module
Browse files Browse the repository at this point in the history
  • Loading branch information
pantheraleo-7 committed Dec 7, 2024
1 parent e12ffc9 commit eaca2ab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions adafruit_ads1x15/ads1x15.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@
16: 0x0A00,
}

# Pins
PIN0 = 0
"""Analog Pin 0"""
PIN1 = 1
"""Analog Pin 1"""
PIN2 = 2
"""Analog Pin 2"""
PIN3 = 3
"""Analog Pin 3"""


class Mode:
"""An enum-like class representing possible ADC operating modes."""
Expand Down

0 comments on commit eaca2ab

Please sign in to comment.