Wake up on external interupt - Leonardo

You picked the wrong interrupt mode. :frowning:

The datasheet says that you can wake up from power-down with INT0 through INT3 and INT6. (For INT6, only level interrupt.) You are using INT6 (Pin 7) so you can't use "RISING". You have to use "HIGH".

The available pins for attachInterupt() on the Leonardo are 0, 1, 2, 3, and 7.

INT0 on Pin 3 Interrupt 0
INT1 on Pin 2 Interrupt 1
INT2 on Pin 0 Interrupt 2
INT3 on Pin 1 Interrupt 3
INT6 on Pin 7 Interrupt 4

NOTE: You should always use digitalPinToInterrupt():
attachInterrupt( digitalPinToInterrupt(7), wakeUp, HIGH);