You need to talk to a local defense attorney. They will have the most useful information involving your local court system. Courts differ from state to state and from city to city. Your particular court may have a drug court program. A lot also depends on your criminal history. You can help yourself but checking yourself into a drug program to show the court you are serious about your problem and by not picking up more cases while this one is pending.
Get a lawyer and fight the charge. You should also get a drug evaluation to determine the extend of the drug problems you may have. Most lawyers should provide a free initial consultation. Good luck.
Most lawyers will give you a free consultation if you ask for one. We do this all the time, but remember that our time is valuable and you should stay with the people who help you the most.