From dae4f3d9ce35174495841cc590a6d73875ad8e7a Mon Sep 17 00:00:00 2001 From: thiswillbeyourgithub Date: Tue, 20 Sep 2022 11:06:02 +0200 Subject: [PATCH] docs: add comments explaining why keep Pin import for battery Signed-off-by: thiswillbeyourgithub --- wasp/drivers/battery.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wasp/drivers/battery.py b/wasp/drivers/battery.py index e339fdc..fa3dd47 100644 --- a/wasp/drivers/battery.py +++ b/wasp/drivers/battery.py @@ -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):