The African American inventor of a life-saving device, mechanical traffic signals, and more had to fight for recognition.