| /** | |
| * Grabs a number of readings from the analog input, sampled | |
| * with the specified frequency. | |
| * | |
| * @param amountSamples the amount samples to be taken | |
| * @param frequency the frequency that should be used for sampling | |
| * @return an array of values ranging between 0.0 and 1.0. | |
| * These represent the percentage of the voltage reference | |
| * that were supplied to the pin when the measurement was | |
| * taken. | |
| */ | |
| double[] sample(int amountSamples, float frequency); | |
| /** | |
| * Grabs a number of readings asynchronously from the analog input, | |
| * sampled with the specified frequency. | |
| * The program will continue execution while the samples are being | |
| * taken. | |
| * | |
| * @param amountSamples the amount samples to be taken | |
| * @param frequency the frequency that should be used for sampling | |
| * @return A future containing an array of the sampled values. | |
| * These values range between 0.0 and 1.0, which represents | |
| * the percentage of the reference voltage that has been | |
| * measured. | |
| */ | |
| Future<double[]> sampleAsync(int amountSamples, float frequency); |