Skip to content

WiFi and NeoPixelBus Update #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

DjAngellas
Copy link

Update ESP8266WiFi options to include hostname in order to allow for easier identification of hosts within the network.
Update NeoPixelBus options to permit using GPIO0 or GPIO2 on the ESP01/01-S platform.
Comment cleanup and clarification.

Added hostname feature.
Changed PixelBus method from 800kbps to DmaWS2812.
Update NeoPixelBus options to allow for the selection of output GPIO pin on ESP01/01-S when using WS2812x LEDs.
Removed unnecessary comments.
Clarified remaining comments.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GPIO0 is incorrect. NeoEsp8266DmaWs2812xMethod uses GPIO3.

lit_arduino.ino Outdated
@@ -14,7 +14,10 @@ const unsigned int port = 9000;
WiFiUDP socket;
char packetBuffer[PACKET_SIZE];
uint64_t latestTimestamp = 0;
NeoPixelBus<NeoGrbFeature, NeoEsp8266DmaWs2812xMethod> neopixels(NUM_LEDS);
//Uncomment NeoEsp8266DmaWs2812xMethod to use ESP01/01-S GPIO0
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should read "//Uncomment NeoEsp8266DmaWs2812xMethod to use ESP01/01-S GPIO3"

"//Uncomment NeoEsp8266DmaWs2812xMethod to use ESP01/01-S GPIO0" corrected to "//Uncomment NeoEsp8266DmaWs2812xMethod to use ESP01/01-S GPIO3 / RX"
Copy link
Collaborator

@nickpesce nickpesce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@@ -9,11 +9,16 @@

const char* ssid = "OMITTED";
const char* password = "OMITTED";
const char* hostname = "OMITTED";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be made optional? Maybe by just not calling wifi.hostname if the hostname an empty string (and make "" the default). I'd like to keep it possible to install the same image on multiple devices without duplicate hostname issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants