Skip to content

Commit

Permalink
Fix polarity to work with hardware example.
Browse files Browse the repository at this point in the history
  • Loading branch information
kattni committed Oct 19, 2022
1 parent 80595a6 commit cece836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ltr303_advancedtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# The interrupt output can be enabled
ltr303.enable_int = True
# We can also change whether the polarity is active LOW (False) or HIGH (True)
ltr303.int_polarity = False
ltr303.int_polarity = True

# Then set the low and high thresholds that would trigger an IRQ!
ltr303.threshold_low = 2000 # interrupt goes off if BELOW this number
Expand Down

0 comments on commit cece836

Please sign in to comment.