Finch vibration API is cryptic

Issue #76 new
Doug Blank created an issue

Currently, the API for the vibration motor is:

setVolume(volume)

"Sets the intensity of a vibration motor volume - "v1" followed by the intensity for vibration port 1, "v2" followed by the intensity for vibration port 2 Example: "v1255" (sets vibration port 1 to 255), "v20" (sets vibration port 2 to 0), "v225" (sets vibration port 2 to 25)."

But that is pretty cryptic. Why not setVolume((1, 255))?

Comments (2)

  1. Doug Blank reporter

    One fix: changed setLED(pos, value) to allow a IList as values... should probably make that a Color to be consistent.

  2. Log in to comment