The invention concerns a hinge of the type consisting of two flap-shaped main components (1, 2), having a mutual-engagement area (3) on a common pivoting axis. The hinge provides that with one of the flaps (1, 2) there is integral a head (4) of the pivoting axis, having a cam-shaped profile, and that with the other flap (1, 2) there is associated a switch body (5) wherefrom a control pin (9) protrudes. An outer end of the control pin (9) engages with said cam-shaped profile, and an end inside the body (5) acts on a button (11) actuating a switch (10) arranged within said body (5).