but I'm not sure if its actually attached
it appears to be attached
but I'm not seeing any useful readings using system_adc_read();
Is there something I need to initialize before calling system_adc_read(); ???
Or perhaps I have not made a good contact to the pin (aka a dry joint)
Edit. I just looked in the sdk and I can't see anything else with _adc in its name, so perhaps it doesnt need to be initialized
Interestingly in the assembler code, its clear that its putting the device into low_power mode etc
40217bdd: fbe1f1 l32r a15, 40216b64 <ram_pbus_set_rxgain+0xc8>
40217be0: e508c1 l32r a12, 40211000 <_irom0_text_start>
40217be3: fff601 l32r a0, 40217bbc <low_power_set+0x4c>
40217be6: e589e1 l32r a14, 4021120c <read_macaddr_from_otp+0x200>
and later
40217c4a: ffde31 l32r a3, 40217bc4 <low_power_set+0x54>
Does anyone know if this pin actually reads voltages, there has been some speculation on the forum that it doesn't read voltages but reads PWM related to voltages.
i.e I have attached a 10k potentiometer (pot) between 3.3V and GND and connected the wiper to the TOUT pin but I still just get random values e.g.
75
76
76
74
113
77
77
76
76
77
77
77
91
76
77
77
77
76
77
77
75
100
78
78
78