Pin assignment numbering?
Posted: Fri Dec 26, 2014 2:53 pm
How are the pin assignments for the Lua script API configured? 0 is always the first pin?
e.g. Frequency Input #1 is Channel 0?
Channel
1. Ground
2. +12v
3. Analog/Frequency out 4
4. Analog/Frequency out 3
5. Analog/Frequency out 2
6. Analog/Frequency out 1
7. +5V Voltage reference
8. Analog input 7
9. Analog input 6
10. Analog input 5
11. Analog input 4
12. Analog input 3
13. Analog input 2
14. Analog input 1
15. General purpose input/output 3
16. General purpose input/output 2
17. General purpose input/output 1
18. Frequency/pulse input 3
19. Frequency/pulse input 2
20. Frequency/pulse input 1
There are only three timer channels, right? So the API documentation should be channels 0-2, or?
And there are only 7 analog input channels, so it should be 0-6, or?
e.g. Frequency Input #1 is Channel 0?
It looks like there is a discrepancy between the API documentation and the pin availability.Timer / RPM Sensor Functions
getTimerRpm(channel)
Returns the current RPM of the specified timer input channel. Note, the timer channel configuration must be set to RPM mode.
params
channel: Timer channel 0 - 3
returns: RPM value
Channel
1. Ground
2. +12v
3. Analog/Frequency out 4
4. Analog/Frequency out 3
5. Analog/Frequency out 2
6. Analog/Frequency out 1
7. +5V Voltage reference
8. Analog input 7
9. Analog input 6
10. Analog input 5
11. Analog input 4
12. Analog input 3
13. Analog input 2
14. Analog input 1
15. General purpose input/output 3
16. General purpose input/output 2
17. General purpose input/output 1
18. Frequency/pulse input 3
19. Frequency/pulse input 2
20. Frequency/pulse input 1
There are only three timer channels, right? So the API documentation should be channels 0-2, or?
And there are only 7 analog input channels, so it should be 0-6, or?