@eron93br
The SX1272 and SX1276 have no problems communicating, as long as you set the same modulation it's OK.
But your request for node code is difficult, the SX1276 is just a radio transceiver it doesn't run any code, to use it you need to connect it to a host processor (can be a microcontroller, a SoC like the Raspberry Pi or even a computer via USB). All of these will have different code.
For example if you host is an Arduino and since you mentioned LoRaWAN something like Arduino-LMIC would be suitable for a node. You can even use the ttn ABP example just remove the LMIC_setupChannel() lines to match your LoPy nano gateway setup (so have only ONE LMIC_setupChannel line with the same frequency you set on the LoPy)