How to modify GPIO's toggle speed

for examle

  1. GPIO from 0 to 1
  2. GPIO from 1 to 0

Toggle speed is the time needed to GPIO works