Garrett Morgan was not the first to invent or patent a traffic signal, but he was the first to invent one that could be changed at a distance, via a mechanical linkage. (He also patented a gas mask.) Morgan was a black man living in Cleveland, Ohio, who was a successfuly businessman and well-liked citizen of his town in a time long before the Civil Rights movement.
No doubt he still suffered from quite a deal of racism, and there’s a certain irony in that his inventions probably saved far more white lives than they did black lives. Morgan is remembered in Cleveland as the first black man there to own a car, and also for his heroic rescue of trapped minors (using his own gas mask invention) in 1916, for which he received awards and acclaim.