Closed lbnshrivas closed 6 years ago
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 which pins of ESP8266 are connected to OE,A,B, CLK,SCLK and for data??
Hi I have used the same PINS which are being mentioned in the link below https://github.com/freetronics/DMD2/pull/7#issue-97282971
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. For showing the proper data, user will have to disconnect the WIFI and then will have to initialize the DMD2.
SPIDMD dmd(DISPLAYS_WIDE, DISPLAYS_HIGH, pin_noe, pin_A, pin_B, pin_sclk); // DMD controls the entire display
P10 sort PIN
NOE | A
Correct Is a | GPIO16 b | GPIO12 |
---|---|---|
clk | GPIO14 | |
sck | GPIO0 | |
r | GPIO13 | |
noe | GPIO15 |
thank you all for replying my issue is solved.
@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 junaidteli922@gmail.com
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 notifications@github.com 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. https://github.com/freetronics/DMD2/issues/20
On Sat, 24 Nov 2018, 3:51 pm junaid2196, notifications@github.com wrote:
What problem are you facing ??
Sent from my iPhone
On 24-Nov-2018, at 10:57 AM, techsavvy123 notifications@github.com 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 https://github.com/freetronics/DMD2/issues/20#issuecomment-441357527, or mute the thread https://github.com/notifications/unsubscribe-auth/ArAUXd1fbryE5rhPRsQc6RjzyyU_T6VAks5uyR2TgaJpZM4O8tIp .
Hi I have used the same PINS which are being mentioned in the link below #7 (comment)
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. For showing the proper data, user will have to disconnect the WIFI and then will have to initialize the DMD2.
How to ? I tried repeatedly to find no results
@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 junaidteli922@gmail.com
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