soundSensor

Category:Circuit

sensors

soundSensor, lightSensor, and tempSensor are objects representing the analog sensors on the Circuit Playground. Internally soundSensor is connected to the analog pin A4, lightSensor is connected to analog pin A5, and tempSensor is connected to analog pin A0.

Properties and Methods

Events

  • "change" - Fired any time the input value of the specified sensor changes
  • "data" - Fired every 100 milliseconds.

Found a bug in the documentation? Let us know at documentation@code.org