As Keith notes, those lamps are akin to the courtesy ones in vehicles for many decades. They are the same circuit design, controlled by rotating the headlight switch fully counterclockwise for on, slightly clockwise from that for off. And on many configurations the dash illumination dims and brightens with further knob control.
Joel