I've done it in court before.
It is always best to call the court and request a public defender prior to the hearing. If you the hearing is next week, I would send a letter requesting and call. Copy the letter. This way you can show the court that you made the request.
Thanks! Your answer is awaiting moderation.