mirror of
https://github.com/travisgoodspeed/goodwatch
synced 2024-11-21 23:58:31 +00:00
Grounds unused pins of Port J to drastically reduce power consumption when profiling. Close #105.
This commit is contained in:
parent
53f5b066a2
commit
fe03d507f1
@ -129,6 +129,9 @@ int main(void) {
|
||||
printf("but ");
|
||||
sidebutton_init();
|
||||
|
||||
//Unused IO pins must be outputs.
|
||||
PJDIR |= 0xF;
|
||||
PJOUT &= ~0xF;
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user