neopixel and arduino

How do I get poti information via A1 to output to neopixel for just one color, quasi set color to one color, say white and dimm (fade) it at the digital output?
Thanks for help in advance

Please read this:-
How to use this forum it will help you to ask a question.

Currently it is not at all clear what you want this pot to do. Is it setting the colour or fading the brightness?

As I am fairly new in this and have actually no clue where to start, I am just looking for a code for the Arduino nano to set color on a neopixel strip to one color and fade this color (set the brighness) with an analog potentiometer. Have not found anything like this so far.

Any help is appreciated.

So wire up your pot like this:-

The write your code to read the pot, this gives a number between 0 and 1023. Then divide the result by 4 making the number range between 0 and 255. Put it in a variable called reading.

Then use the FastLED.setBrightness( reading ) method to set the brightness of your display. Then display you colour and it will be at the brightness you specified.

Thanks a lot for your kind advice, I will try it out very soon. I have been through all these tutorials and even adjusting different other codes, but so far with no success. The setBrightness (reading) thing could work. Will definitely give it a try. Thanks again and so long

Dear Mike, thanks a lot for your hint. The setBrightness thing made it work. For all who are interesdeted, below the code:

#include <Adafruit_NeoPixel.h>
#define LED_PIN 6
#define LED_COUNT 6
Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_GRBW + NEO_KHZ800);

int sensorPin = 1; // select the input pin for the potentiometer
int sensorValue = 0; // variable to store the value coming from the sensor
int stripBrightness = 0;// variable for the strip brightness
void setup() {
strip.begin(); // Initialize strip
strip.show(); // Initialize all pixels to 'off'
pinMode(sensorPin, INPUT_PULLUP);
Serial.begin (9600); // for control of the poti values
}
void loop() {
uint32_t white = strip.Color(125, 125, 125); // define color
strip.fill(white, 0); // fill strip with color defined
sensorValue = analogRead(sensorPin); // read the analog poti pin
stripBrightness= map(sensorValue, 0, 1024, 0, 255); // define input for digital pin
strip.setBrightness (stripBrightness); // set strip to the poti signal
strip.show(); // send to strip
Serial.print("The level is "); // for debugging
Serial.println(stripBrightness); // for debugging
}