my project is modified from DSPS device project,
there have a switch on my board,I use P1.2 to read the level,when the switch is on the pin will read high level.when off the level is low.
the problem is when the switch is on the current will increase 80μA。when device is in sleep mode,80μA is a large value,so this is a big probelm.
how can I handle this pin ,set it output high brfore go to sleep?But I don't think this is a good method to slove this problem
Device:
Hi RandyYu,
如果销连接ed the switch is configured a INPUT_PULLUP you will have some short of leakage, a solution would be to configure it as INPUT_PULDOWN when going to sleep in order to minimize it.
Thanks MT_dialog