61/** NOTE: This section deals with implementing (fast) asynchronous analog reads, which form the backbone of mozziAnalogRead(), but also of USE_AUDIO_INPUT (if enabled).
62 * This template provides empty/dummy implementations to allow you to skip over this section, initially. Once you have an implementation, be sure to enable the
63 * #define, above */
64
65// Insert here code to read the result of the latest asynchronous conversion, when it is finished.
66// You can also provide this as a function returning unsigned int, should it be more complex on your platform
67#definegetADCReading() 0
68
69/** NOTE: On "pins" vs. "channels" vs. "indices"
70 * "Pin" is the pin number as would usually be specified by the user in mozziAnalogRead().
71 * "Channel" is an internal ADC channel number corresponding to that pin. On many platforms this is simply the same as the pin number, on others it differs.
72 * In other words, this is an internal representation of "pin".
73 * "Index" is the index of the reading for a certain pin/channel in the array of analog_readings, ranging from 0 to NUM_ANALOG_PINS. This, again may be the
74 * same as "channel" (e.g. on AVR), however, on platforms where ADC-capable "channels" are not numbered sequentially starting from 0, the channel needs
90/** NOTE: Code needed to trigger a subsequent conversion on the latest channel. If your platform has no special code for it, you should store the channel from
91 * adcStartConversion(), and simply call adcStartConversion(previous_channel), here. */
95/** NOTE: Code needed to set up faster than usual analog reads, e.g. specifying the number of CPU cycles that the ADC waits for the result to stabilize.
96 * This particular function is not super important, so may be ok to leave empty, at least, if the ADC is fast enough by default. */
100/** NOTE: Code needed to initialize the ADC for asynchronous reads. Typically involves setting up an interrupt handler for when conversion is done, and
179//NOTE: DAC setup currently affected by https://github.com/arduino-libraries/Arduino_AdvancedAnalog/issues/35 . Don't expect this to work, until using a fixed version fo Arduino_AdvancedAnalog!
Generated automatically using Doxygen. If info on this page is outdated, incomplete, or wrong, please open an issue at https://github.com/sensorium/Mozzi/issues