|
|
|
@ -1,5 +1,5 @@ |
|
|
|
const int input[] = {36, 39, 34 ,35 ,32 ,33 ,25 ,26}; |
|
|
|
int inputValue[] = {0, 0, 0, 0, 0, 0, 0, 0}; |
|
|
|
long inputValue[] = {0, 0, 0, 0, 0, 0, 0, 0}; |
|
|
|
const int numPins = sizeof(input) / sizeof(input[0]); |
|
|
|
|
|
|
|
#define RXD2 (16) |
|
|
|
@ -24,7 +24,7 @@ void values2uart() { |
|
|
|
|
|
|
|
void loop() { |
|
|
|
for (int i = 0; i < numPins; i++) { |
|
|
|
inputValue[i] = analogRead(input[i]) / 100; |
|
|
|
inputValue[i] = map(analogRead(input[i]), 0, 4096, 0, 100); |
|
|
|
} |
|
|
|
|
|
|
|
values2uart(); |
|
|
|
|