docs: add comments explaining why keep Pin import for battery
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
This commit is contained in:
parent
752fe77376
commit
dae4f3d9ce
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue