I have some easy photo resistor code that sends constant power out using the A5 analog pin. And I use these two commands to do it:
pinMode (A5, OUTPUT); // A5 The pin powering the photoresistor is output (sending out consistent power)
digitalWrite(A5, HIGH); // A5 Next, write the power of the photoresistor to be the maximum possible, so that we can use this for power.
Question 1/2 , Can I set pin A5 to output 3.3v instead of 5v?
Question 2/2, Is it possible to use an analog pin as a ground?