The oxide of nitrogen formed in atmosphere during lightning is :
NO
The very high temperature in the vicinity of a lightning bolt causes the gases oxygen and nitrogen in the air to react to form nitric oxide. Such extreme conditions are necessary to break the triple bond between a dinitrogen molecule thanks to the high bond enthalpy (of the N≡N bond) - 945kJ.mol−1.
N2+O2lightining−−−−−−→2NO
Eventually, the nitric oxide molecule could react with oxygen further to give higher oxides. But the starting compound is the nitric oxide.