(a) Predicate Motor Vehicle or Traffic Offenses. Except as otherwise provided in this section, whoever violates any provision of this Traffic Code which is a predicate motor vehicle or traffic offense and for which no other penalty is provided is guilty of a minor misdemeanor. If, within one year of the offense, the offender previously has been convicted of or pleaded guilty to one predicate motor vehicle or traffic offense, whoever violates such provision is guilty of a misdemeanor of the fourth degree. If, within one year of the offense, the offender previously has been convicted of two or more predicate motor vehicle or traffic offenses, whoever violates such provision is guilty of a misdemeanor of the third degree.
(b) Non-Predicate Motor Vehicle or Traffic Offense. Whoever violates any provision of this Traffic Code which is not a predicate motor vehicle or traffic offense and for which no other penalty is provided is guilty of a minor misdemeanor on a first offense; on a second offense within one year after the first offense, the person is guilty of a misdemeanor of the fourth degree; on each subsequent offense within one year after the first offense, the person is guilty of a misdemeanor of the third degree.