mirror of
https://github.com/elua/elua.git
synced 2025-01-08 20:56:17 +08:00
bd2e819368
- adc_wait_samples now returns the actual number of samples available at the time it returns. this simplifies a pattern where one would wait on samples if blocking and then subsequently check the number of available samples. - adc.insertsamples(id, table, idx, count) function now available to take samples and insert them into a table. this is slightly slower than assignment for single values in a table, but can avoid having to use getsamples (returning new tables) for certain situations idx: starting index in table where values will be inserted count: number of samples to get from channel id