Go to the court, ask for a petition for a court-appointed lawyer, complete it and return it, then see if the judge grants the petition.