1 (MOSI/DI/SDA/!OC1A/PCINT8) PB0 MOSI,LED1 SENSE1+ PA0 (ADC0/DI/SDA/PCINT0)
2 (MISO/DO/OC1A/PCINT9) PB1 MISO,PWM1 SENSE12- PA1 (ADC1/DO/PCINT1)
3 (SCK/USCK/SCL/!OC1B/PCINT10) PB2 SCK,LED2 SENSE2+ PA2 (ADC2/INT1/USCK/SCL/PCINT2)
4 (OC1B/PCINT11) PB3 PWM2 SW2 PA3 (AREF/PCINT3)
7 (ADC7/!OC1D/CLKI/XTAL1/PCINT12) PB4 LED3 SENSE5 PA4 (ADC3/ICP0/PCINT4)
8 (ADC8/OC1D/CLKO/XTAL2/PCINT13) PB5 PWM3 SENSE3+ PA5 (ADC4/AIN2/PCINT5)
9 (ADC9/INT0/T0/PCINT14) PB6 SW1 SENSE34- PA6 (ADC5/AIN0/PCINT6)
10 (ADC10/RESET/PCINT15) PB7 RST SENSE4+ PA7 (ADC6/AIN1/PCINT7)
24 SENSE4 - ambient light sensor
25 SENSE5 - battery voltage sense
27 SW2 - temporary light boost or whatever
28 LED1 - speedometer illumination LED
33 single-ended resolution:
35 differential resolution 8x gain:
37 differential resolution 20 gain:
39 differential resolution 32x gain:
41 analog input resistance 100 MOhm
43 LED current sense, 0.033R sensing resistor:
51 1000 mA => 0.0330 V 32x
52 1500 mA => 0.0495 V 20x 0.0495 W
53 2000 mA => 0.0660 V 8x 0.066 W
54 3000 mA => 0.0990 V 8x 0.1 W
68 400 lx == sunset/sunrise
69 10 klx == full daylight
71 need probably 1-1k lux scale
74 5 V, 1M5 resistor + photodiode: voltage at the photodiode
75 darkness: 3.71 V => 4.31 MOhm
76 bathroom without lights, only outside lights: 3.68 V => 4.18 MOhm
77 kitchen light: 3.29 V => 2.89 MOhm
78 bathroom halogen lights 0.02 V => 6 KOhm
79 battery light: 0.01 V => 3 KOhm