Betts v. Brady
Then, in 1938, the Supreme Court ruled in Johnson v. Herbst that in federal courts, any person who was charged with a crime and could not pay for a lawyer had to be assigned a lawyer for free.  However, the Court also ruled that the Sixth Amendment applied only to federal courts  not to state courts.