1
0
Fork 0

Merge pull request #361 from thiswillbeyourgithub/pr_comment_dont_remove_battery_pin

add comment warning to ignore IDE asking to remove unused imports
This commit is contained in:
Daniel Thompson 2022-10-01 20:58:19 +01:00 committed by GitHub
commit ae8d184250
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,8 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
import micropython
# don't remove Pin import even though your IDE tells you it's unused, otherwise
# micropython can't load your battery level.
from machine import Pin, ADC
class Battery(object):