Have Traffic Law Questions? Ask a Traffic Lawyer Online.
Good morning. I have provided the language in the code which you were charged under. As you can see, you need to be riding the bike in the same direction as traffic. If you were doing this, then you could have a defense. If you were riding into the direction of oncoming traffic, then you would be in violation.
Bicycle Operated on Roadway or Highway Shoulder
21650.1. A bicycle operated on a roadway, or the shoulder of a highway, shall be operated in the same direction as vehicles are required to be driven upon the roadway.
I just wanted to follow up and see if you had any other questions or needed me to clarify something. I am here to help, so please let me know. Thanks!