arduino leonardo & VirtualWire Library problem

Hi, I tried to communicate via 433Mhz rf transmission but When I upload the simplest sketch file on my leonardos (arduino pro micro sold from aliexpress) (reciever & transmitter). The even do not enter the loop {} function but when I use arduino unos, they work perfectly. Why does it happen?

Thanks.
BC

Please post your full sketch (the simplest one). If possible you should always post code directly in the forum thread as text using code tags (</> button on the toolbar). This will make it easy for anyone to look at it, which will increase the likelihood of you getting help. If the sketch is longer than the forum will allow then it's ok to add it as an attachment.

Please always do a Tools > Auto Format on your code before posting it. This will make it easier for you to spot bugs and make it easier for us to read. If you're using the Arduino Web Editor then you will not have access to this useful tool. I recommend using the standard Arduino IDE instead.

When your code requires a library that's not included with the Arduino IDE please always post a link(using the chain links icon on the toolbar to make it clickable) to where you downloaded that library from or if you installed it using Library Manger(Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.

you write without reading my question, it is not about the source code. Its about the relation btw code&hardware. You just copy/paste the message like your avatar.

Anyway I found the solution that atmega32u4 doesn't have a Timer2

boraciner:
You just copy/paste the message

Sure I copy and paste from a collection of stock replies. Why should I type all that out hundreds of times over and over?

boraciner:
like your avatar.

My avatar is the code tags button for the forum. I use it in the hope it reminds newcomers to use them. What does that have to do with copy/paste?

boraciner:
it is not about the source code. Its about the relation btw code&hardware.
...
Anyway I found the solution that atmega32u4 doesn't have a Timer2

By which you mean that it is about the source code! Which is why it would have been necessary for us to have your code in order to help you. In fact there are several other possible causes of precisely the issue you reported. Lacking psychic powers, how could I know which it was based on the tiny amount of information you provided?

Obviously you don't welcome people trying to help you. I'll refrain from doing so in the future.

boraciner:
Anyway I found the solution that atmega32u4 doesn't have a Timer2

Nonsense