Lets start with getting the FSM, factory service manual. PM sending in a few
The brake light is actuated by the brake switch on the master cylinder or the rear foot pedal.
The rear brake switch is on the right side of the frame forward and lower than the battery, activated by a spring connected to the pedal.
The front switch is under the master.