I've searched the forum and still can't seem to figure this one out:
Here's the code in question, which measure the input of a photoresistor and uses this to affect a change in output to the backlighting of a TFT on D3.
Summary: I'm looking to set the Pullup Resistor for A3 input as part of the biasing of the LDR circuitry.
// DEFINE FOR DISPLAY DIM SENSOR #define DimNUMDimsamples 50 // the number of samples to take for averaging ambient light intensity
int Dimsamples[DimNUMDimsamples];
int photocellInput = A3; // pin that the sensor is attached
pinMode(photocellInput, INPUT);
digitalWrite(photocellInput, HIGH);
int ledPin = 3; // pin that the Display Backlight is attached
int LEDbrightness;
Read the post at the top of this Forum on how to properly post source code here, especially the use of code tags and the complete source code. Without that, it's really hard to be of help.
Bwanna:
I've searched the forum and still can't seem to figure this one out:
Here's the code in question, which measure the input of a photoresistor and uses this to affect a change in output to the backlighting of a TFT on D3.
Summary: I'm looking to set the Pullup Resistor for A3 input as part of the biasing of the LDR circuitry.
// DEFINE FOR DISPLAY DIM SENSOR #define DimNUMDimsamples 50 // the number of samples to take for averaging ambient light intensity
int Dimsamples[DimNUMDimsamples];
int photocellInput = A3; // pin that the sensor is attached
pinMode(photocellInput, INPUT);
digitalWrite(photocellInput, HIGH);
int ledPin = 3; // pin that the Display Backlight is attached
int LEDbrightness;
You cannot call functions outside of a function definition. At top level you can only declare.
Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.