Grounds unused pins of Port J to drastically reduce power consumption when profiling. Close #105.

This commit is contained in:
Travis Goodspeed 2018-09-16 15:29:33 -04:00
parent 53f5b066a2
commit fe03d507f1

View File

@ -129,6 +129,9 @@ int main(void) {
printf("but ");
sidebutton_init();
//Unused IO pins must be outputs.
PJDIR |= 0xF;
PJOUT &= ~0xF;