Pressure only affects an equilibrium that has gaseous components, and only when the total moles of gaseous reactants differ from the total moles of gaseous products (Δng=0). Increasing the pressure (decreasing the volume) shifts the equilibrium toward the side with fewer moles of gas; decreasing the pressure (increasing the volume) shifts it toward the side with more moles of gas. For ammonia synthesis, N2(g)+3H2(g)⇌2NH3(g) (4 mol gas → 2 mol gas), compressing the system favours NH3 formation; expanding it favours decomposition back to N2 and H2. When Δng=0, as in H2(g)+I2(g)⇌2HI(g), pressure changes have no effect at all on the equilibrium position.
Temperature shifts equilibrium in the direction that absorbs the applied change -- raising the temperature always favours whichever direction is endothermic, and lowering the temperature always favours whichever direction is exothermic. For ammonia synthesis, the forward (synthesis) direction is exothermic, so raising the temperature decomposes some NH3 back to N2 and H2 (the endothermic, heat-absorbing direction), while lowering the temperature favours more NH3 formation. This same logic reads a colour change directly as a sign of ΔH: for [Co(H2O)6]2+(pink)+4Cl−⇌[CoCl4]2−(blue)+6H2O, if the mixture is blue (forward/product-favoured) at room temperature but turns pink (reverse/reactant-favoured) on cooling, then cooling is favouring the reverse reaction -- so heating must favour the forward reaction, meaning the forward reaction is endothermic, ΔH>0. Comparing a reaction's equilibrium constant at two temperatures gives the same conclusion quantitatively: if K1 (room temperature) is greater than K2 (at 700 K), then K is falling as temperature rises -- exactly the signature of an exothermic forward reaction (a lower K at higher T means the endothermic, i.e. reverse, direction is being favoured as T rises, so the forward direction must be exothermic). …