In Pennsylvania you are considered a vehicle and must follow all the laws of the car unless specifically called out in the vehicle code. The only exception I know of in PA is bikes must stay as on the shoulder or if it is unsafe as close to the shoulder as is safe.