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.
14 lines
239 B
Arduino
14 lines
239 B
Arduino
2 years ago
|
int aipin[] = {A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15};
|
||
|
|
||
|
void GPIO_setup(){
|
||
|
|
||
|
}
|
||
|
|
||
|
void read_analog(int arr[], int size){
|
||
|
int i = 0;
|
||
|
|
||
|
for(i = 0 ; i < size ; i++){
|
||
|
arr[i] = analogRead(aipin[i]);
|
||
|
}
|
||
|
|
||
|
}
|