Sha256: 750a518e6c895113e0c2cd72cd1108e1ab3f9238f47de27b2361dcae9aeb63db
Contents?: true
Size: 404 Bytes
Versions: 1
Compression:
Stored size: 404 Bytes
Contents
# # This is a simple example to move a stepper motor using the sparkfun easydriver shield: https://www.sparkfun.com/products/10267? # require '../lib/dino' board = Dino::Board.new(Dino::TxRx.new) stepper = Dino::Components::Stepper.new(board: board, pins: { step: 10, direction: 8 }) 1600.times do stepper.step_cc sleep 0.001 end 1600.times do stepper.step_cw sleep 0.001 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dino-0.8 | examples/stepper.rb |