-
Notifications
You must be signed in to change notification settings - Fork 71
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
DMD2 Library not working in ESP8266 Station Mode #20
Comments
Still get problem? Esp8266 still problem if you define dmd first, You should define your wifi configuration first then you define dmd. Just change place And all will working. |
Sorry for incomplete message, In setup function You need to connect wifi First, then you write dmd.begin |
hi NeerajShrivastava04 |
Hi I have used the same PINS which are being mentioned in the link below Also, the problem which I was facing when I posted this issue is that both DMD2 and ESP 8266 SDK uses SPI library and because of this a user can't show the data on board in case if ESP is connected to WIFI. |
#define pin_A 16 #define DISPLAYS_WIDE 1 P10 sort PIN NOE | A
Correct Is
|
thank you all for replying |
@NeerajShrivastava04 can you help me out with this project....i am unable to display anything on my dmd p10 display...please contact me on my email which is [email protected] |
My Issue is resolved. |
@NeerajShrivastava04 can u please tell me how did u solve your issue of booting,as i m stuck on the same page. |
What problem are you facing ??
…Sent from my iPhone
On 24-Nov-2018, at 10:57 AM, techsavvy123 ***@***.***> wrote:
can u please tell me how did u solve your issue of booting,as i m stuck on the same page.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
My program is entering into booting mode and i m not able to coming out of
that loop. This is the code which i ve followed.
#20
…On Sat, 24 Nov 2018, 3:51 pm junaid2196, ***@***.***> wrote:
What problem are you facing ??
Sent from my iPhone
> On 24-Nov-2018, at 10:57 AM, techsavvy123 ***@***.***>
wrote:
>
> can u please tell me how did u solve your issue of booting,as i m stuck
on the same page.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ArAUXd1fbryE5rhPRsQc6RjzyyU_T6VAks5uyR2TgaJpZM4O8tIp>
.
|
How to ? I tried repeatedly to find no results |
How to ? I tried repeatedly to find no results |
Hi,
First of all I want to thank you for such a wonderful library.
I am working on a proto in which I need to run the P10 Modules with ESP8266 and need to show the data fetched from the web. I am wondering if anyone else has faced this issue so far or not but when putting the ESP8266 in STATION mode along with DMD2 library, then my NodeMCU is getting rebooted again and again. Its getting rebooted at the point where I have setup the WIFI mode in my setup() function. The same works fine in case if the ESP is being configured in ACESS POINT Mode.
I have decoded the exception with the help of exception decoder but I couldn't figure out much in that.
I don't know that whether there is an issue in my code or whether there is any conflict between DMD2 and ESP libraries with ESP STATION mode.
Please find below my code.
#include<ESP8266WiFi.h>
#include<ESP8266HTTPClient.h>
#include<SPI.h>
#include<DMD2.h>
#include<fonts/SystemFont5x7.h>
#include<fonts/Arial14.h>
#include<ESP8266WebServer.h>
/////////////////// Constants ////////////////////
const char *ssid = "Neerajshri"; // change according to your Network - cannot be longer than 32 characters!
const char *pass = "neeraj@123"; // change according to your Network
const uint8_t *FONT = Arial14;
//const uint8_t *FONT = SystemFont5x7;
const char *MESSAGE = "abcdefghijklmnopqrstuvwxyz";
//char message[5] = "abcd";
HTTPClient http;
const int WIDTH = 1;
SPIDMD dmd(WIDTH,1); // DMD controls the entire display
DMD_TextBox box(dmd); // "box" provides a text box to automatically write to/scroll the display
//int indexStop =0;
// You can change to a smaller font (two lines) by commenting this line,
// and uncommenting the line after it:
void setup() {
Serial.begin(115200);
dmd.setBrightness(255);
dmd.selectFont(FONT);
dmd.begin();
Serial.println(F("Booting...."));
int retries = 0;
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, pass);
while ((WiFi.status() != WL_CONNECTED) && (retries < 10)) {
retries++;
delay(500);
Serial.print(".");
}
if (WiFi.status() == WL_CONNECTED) {
Serial.println(F("WiFi connected"));
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}
Serial.println(F("Ready!"));
Serial.println(F("======================================================"));
}
void loop() {
// put your main code here, to run repeatedly:
const char *next = MESSAGE;
while(*next) {
Serial.print(*next);
box.print(*next);
delay(200);
next++;
}
}
Also, Please find below the output of exception decoder.
I am using
NodeMCU 1.0 (ESP-12E Module)
Arduino version is 1.8.2
Would highly appreciate any help in this regard as I am running very short of time for completing this POC and I totally stuck over here.
Thanks & regards,
Neeraj
The text was updated successfully, but these errors were encountered: