HC 12 433MHz programming

Can someone give me a simple program on how to communicate 2 HC 12 433MHz in Arduino Nano and Mega...please :confused:

Can someone give me a simple program on how to communicate 2 HC 12 433MHz in Arduino Nano and Mega

Can someone (that would be you) bother to tell us how the devices are connected to the Nano and the Mega, and which one is sending and which one is receiving?

Can someone (that would be you) google VirtualWire and/or RadioHead?

Arduino nano will be the transmitter and Mega will be the receiver...

There are working examples in the libraries.