In 1861, Pirren Michaux invented the first bicycle with pedals. Later bicycles are more complex. They have a drivetrain. The first bicycle gearshift was constructed at the beginning of the 20th century. It had two speeds. Now, some bicycles have electronic gear shifting.