Illumination: explain cc_test function

This commit is contained in:
Filip Ayazi 2023-10-06 04:28:59 +01:00
parent 0f36232e45
commit 8d31397110

View file

@ -179,6 +179,14 @@ float multi_read(uint8_t pin, uint16_t reads)
return total/reads; return total/reads;
} }
/*This is a test function used for debugging the CC driver.
* A wire has to be soldered to one side of the feedback resistor R16
* and connected to A0 on the header. This will then go through CC settings
* and measure voltage on the feedback resistor (i.e. current).
*
* This is really only useful for anyone modifying the hardware
* or CC driver communication.
*/
void cc_test() void cc_test()
{ {
analogReadResolution(12); analogReadResolution(12);