You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
394 B
C++
28 lines
394 B
C++
/*
|
|
History:
|
|
20230504 - V0.2
|
|
20230504 - V0.1 init.
|
|
*/
|
|
|
|
#include <SC_AI.h>
|
|
|
|
#include <Arduino.h>
|
|
int aipin[] = {A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15};
|
|
void SC_AI_setup(){
|
|
|
|
}
|
|
|
|
|
|
void SC_AI(int arr[], int size){
|
|
//cli();//stop interrupts
|
|
|
|
int i = 0;
|
|
for(i = 0 ; i < size ; i++){
|
|
arr[i] = analogRead(aipin[i]);
|
|
}
|
|
|
|
|
|
//sei();//allow interrupts
|
|
}
|
|
|