Photon Wifi selector software

Hello Sir. Is there a USB base WiFi set up available for my client use?
Thy must not be able to change product name. Just incase thy have a problems with softapp. I suspect thy will in the near future.

Thanks

Sir You are not answering this question FYI it is about Photon.
Now is it because the answer is no or because I should look for it in the Particle Docs?

One way or the other please let me know
Thank you Sir.

Hello Sir. Is there a USB base Wi-Fi set up available for Photon2 for my clients use?
Thy must not be able to change product name. or delete the firmware

Thanks

There are a number of Wi-Fi setup options for the Photon 2, described here.

Thank you sir. It was some what difficult to find the right link for this but I finally managed. The following is the link for others to use.

Thanks again Mr. rickkas7. Yesterday I created a new app on Particle web IDE.
and also saved it. When I try to add a library like SimpleDmx and or FastLED to it ,it does not show the same app for including the library to it. Even after more than 24 hours it still does not show up on the list of files for adding the library. Would you help me please? Thanks

Hi Mr. rickkas7. After waiting more than 2 days the file showed up on the list of adding libraries. Thanks for your patience.
I am trying to drive DMX pixel LED lights with Photon 2.
I am using DmxSimple and FastLED libraries. I am using FastLED and FastLED2 libraries to make use of the Palette colors and CRGB Palettes. I am getting the following error after file Verification
lib/FastLED/led_sysdefs.h:19:10: platforms/avr/led_sysdefs_avr.h: No such file or directory. What are your suggestions.
Thanks.
PS: I am suing Particle Web IDE

FastLED is not compatible with the Photon 2 and it would not be easy to fix.

Thank you Sir. I have an App, Photon-2-dmx.ino, I am including DmxSimple and Neopixel libraries. After Compiling it ( I don't know how to compile it for Photon2 )
I am getting the following errors:

photon-2-dmx.ino:25:62: 'NEO_GRB' was not declared in this scope

photon-2-dmx.ino:25:72: 'NEO_KHZ800' was not declared in this scope

photon-2-dmx.ino:36:3: 'DmxSimple' was not declared in this scope

photon-2-dmx.ino:45:3: 'DmxSimple' was not declared in this scope.

What are your suggestions.
Thanks
Here is my code

// This #include statement was automatically added by the Particle IDE.
#include <SimpleDmx.h>

// This #include statement was automatically added by the Particle IDE.
#include <neopixel.h>

// This #include statement was automatically added by the Particle IDE.
#include <SimpleDmx.h>

// This #include statement was automatically added by the Particle IDE.
#include <neopixel.h>

//////////////////////////////////////////////////////////////////

//#include "DmxSimple.h"
//#include <Adafruit_NeoPixel.h>

#define NUM_LIGHTS 10         // Number of DMX lights
#define CHANNELS_PER_LIGHT 5  // 5 channels per light (RGB + Master Brightness + Timing)
#define START_CHANNEL 1       // DMX Start channel
#define DURATION 30000        // 30 seconds for each effect

#define PIN D2                // DMX output pin (connected to RS485 transceiver)

Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LIGHTS, PIN, NEO_GRB + NEO_KHZ800);

// Custom function to set RGB color with brightness and timing
void setPaletteColor(int light, uint8_t r, uint8_t g, uint8_t b) {
  int brightness = 128;  // Set master brightness (0-255)
  int timing = 100;      // Set a timing value (optional for control)

  // Calculate DMX start channel for this light
  int startChannel = START_CHANNEL + (light * CHANNELS_PER_LIGHT);

  // Set DMX channels (Red, Green, Blue, Master Brightness, Timing)
  DmxSimple.write(startChannel, r);           // Red channel
  DmxSimple.write(startChannel + 1, g);       // Green channel
  DmxSimple.write(startChannel + 2, b);       // Blue channel
  DmxSimple.write(startChannel + 3, brightness); // Master Brightness channel
  DmxSimple.write(startChannel + 4, timing);     // Timing channel
}

void setup() {
  Serial1.begin(250000);  // Start Serial1 for DMX at 250k baud (DMX standard)  
  DmxSimple.usePin(TX);   // Use hardware TX pin for DMX output
  DmxSimple.maxChannel(START_CHANNEL + (NUM_LIGHTS * CHANNELS_PER_LIGHT) - 1); // Set max DMX channels

  strip.begin();
  strip.show(); // Initialize all pixels to 'off'
}

void loop() {
  // Rainbow effect (red, green, blue sequentially)
  for (int i = 0; i < NUM_LIGHTS; i++) {
    setPaletteColor(i, 255, 0, 0); // Red
    delay(2000);
    setPaletteColor(i, 0, 255, 0); // Green
    delay(2000);
    setPaletteColor(i, 0, 0, 255); // Blue
    delay(2000);
  }
}

// Function to apply palette colors to all lights
void applyColorSequence() {
  for (int i = 0; i < NUM_LIGHTS; i++) {
    uint8_t r = random(0, 256);
    uint8_t g = random(0, 256);
    uint8_t b = random(0, 256);
    setPaletteColor(i, r, g, b);
  }
  delay(DURATION);  // Run for the defined duration
}

Hi Mr. Rickkas7, Is it possible to drive ESP32 with Particle cloud?

Hi Mr. rickkas7,
Why does it take 3 days for a new App to show up on the list of Apps in the online Particle IDE.

Thanks Sir

Sorry I ment I can not add libraries. I have to wait 3 days for it to show up.
The App has already been saved

That's not a known issue. You could try using the settings (gear) icon in the left and using the Clear Cache option. You could also try clearing your browser cache.

However you really should switch to Particle Workbench and not use the Web IDE.

Thanks for the clarifications Sir.
NeoPixel library for the photon says it is the Adafruit library. It is not called Adafruit_Neopixel library. The compiler does not recognize this line
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, DATA_PIN, NEO_GRB + NEO_KHZ800);. Would you help me on this issue please
Thanks Sir

Is this on the Photon 2? You need to specify SPI or SPI1 as the pin, instead of a pin name or number. See these instructions.

Thanks Sir. Yes Sir I am using Photon2, I tried SPI and SPI1, I have no errors this time but I am not getting any signals on SPI nor the SPI1. There are 3 pins named SPI1 on Photon 2. I checked all 3 of them

#include <neopixel.h>
#include "Particle.h"
// Let Device OS manage the connection to the Particle Cloud
SYSTEM_MODE(AUTOMATIC);
SYSTEM_THREAD(ENABLED);

// Define pin and number of LEDs
#define PIXEL_PIN SPI1     // Pin connected to the WS2812 LED strip
#define PIXEL_COUNT 60     // Number of LEDs in your strip
#define PIXEL_TYPE WS2812B
// Create NeoPixel object

Adafruit_NeoPixel strip(PIXEL_COUNT, PIXEL_PIN, PIXEL_TYPE);

// Global variables for timing and state
unsigned long previousMillis = 0;   // Stores the last time LEDs were updated
unsigned long interval = 10000;    // Duration for each color (10 seconds)
int currentColor = 0;              // 0 = Red, 1 = Green, 2 = Blue

void setup() {
    strip.begin();        // Initialize the LED strip
    strip.show();         // Turn off all LEDs initially

}

void loop() {
    // Get the current time
    unsigned long currentMillis = millis();

    // Check if it's time to update the color
    if (currentMillis - previousMillis >= interval) {
        previousMillis = currentMillis; // Update the last update time
        updateColor();                  // Change the LED color
    }
}

// Function to update the LED color
void updateColor() {
    if (currentColor == 0) {
        setColor(255, 0, 0); // Red
    } else if (currentColor == 1) {
        setColor(0, 255, 0); // Green
    } else if (currentColor == 2) {
        setColor(0, 0, 255); // Blue
    }

    // Move to the next color, loop back to red after blue
    currentColor = (currentColor + 1) % 3;
}

// Function to set all LEDs to a specific color
void setColor(uint8_t r, uint8_t g, uint8_t b) {
    for (int i = 0; i < PIXEL_COUNT; i++) {
        strip.setPixelColor(i, strip.Color(r, g, b));
    }
    strip.show(); // Update the LED strip
}

If you are using SPI1 you use D2.

However a 60 pixel strip is large and will almost certainly require an external power supply. How are you powering it? Do you have the level shifter? The Adafruit NeoPixel guide has a lot of useful information about this.

Thanks Sir. I am using Oscilloscope to check the the output signal from SPI1. and I am getting no signal. I should be getting at least 3.3 volt signal
Yes I will be using an external power supply and a level shifter once I do get a signal from SPI1

Clearing the Cache did the job Thanks a lot Sir