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:
commit
ae8d184250
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,8 @@
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
"""
|
"""
|
||||||
import micropython
|
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
|
from machine import Pin, ADC
|
||||||
|
|
||||||
class Battery(object):
|
class Battery(object):
|
||||||
|
|
Loading…
Add table
Reference in a new issue