Leonardo no longer recognized by computer after using sleep.sleepPinInterrupt

I am interested in the power savings from putting CPU to sleep until an event happens.

I am actually using the Leonardo to test out software that I am going to use on a new board called the "uDuino" which I obtained through crowdsuppy.com/uduino. They use the same microcontroller chip and the uduino actually identifies as a Leonardo to the computer.

I tried running the example code for Sleep_n0m1_Interrupt and now my Leonardo is no longer recognized by my computer. No port is assigned and I cannot upload any new code. I have tried playing with the board's RESET button, but it doesn't help.

Can anyone give me any idea about how to use sleep.sleepPinInterrupt without turning my board into a brick?

I have responded to the two replies that I received and posted new information in Reply#3.

Post your code so we don't have to search the web and find the wrong one.

Post a link to the library that you use.

(deleted)

Thank you for your prompt replies.

In response to one of the replies, I brought up Device Manager and double-pressed the reset button on my Leonardo board. The Device Manager produced an entry that said "Unknown USB Device (Device Descriptor Request Failed).

In response to the other reply, I have attached an image of my code which I believe is the same as the example given for Sleep_n0m1_Interrupt.

The Sleep_n0m1.h library link is:GitHub - n0m1/Sleep_n0m1: A library that sets the Arduino into sleep mode for a specified length of time, or until an interrupt

I found the Sleep_n0m1 library in "Manage Libraries" list from the Arduino IDE.

I have searched the Internet for anything that would better explain the code provided by the Sleep_n0m1_Interrupt example, but haven't found anything. I have read article by Nick Gammon about the use of Interrupts including bringing an Arduino Uno (Atmega328) out of sleep mode utilizing sleep.h library, but I'm not sure if it applies to the Sleep_n0m1_Interrupt example code which is supposed to work on a Leonardo (Atmega32U4).