Skip to content

SchooMyDevelopment/SchooMyUtilities

Repository files navigation

schoomy_utilities

A utility library for schoomy.

Usage

SoundSensor

SoundSensorBegin

Please call begin of SchooMyUtilities in setup of Arduino.

SchooMyUtilities scmUtils = SchooMyUtilities();

void setup() {
  scmUtils.soundSensorBegin();
}

SoundSensorPlotterAnalogRead

Read the corrected analog for the sound sensor plotter.

void loop() {
  Serial.print(scmUtils.soundSensorPlotterAnalogRead({pinNumber}));
}

common

serialPlotterPrint

Set the upper and lower limits to make the plotter display easier to read.

void loop() {
  scmUtils.serialPlotterPrint(scmUtils.soundSensorPlotterAnalogRead({pinNumber}), 600, 0);
}

License

MIT