B4R Question p10 led panel library

tango

Active Member
Licensed User
Longtime User
i couldnt solve this problem.

#Region Project Attributes
#AutoFlushLogs: True
#CheckArrayBounds: True
#StackBufferSize: 300
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Public Serial1 As Serial
Public dmd1 As DMD
End Sub

Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
' dmdp10.Initialize(32,16)
' dmdp10.clearScreen(1)
' AddLooper("Draw")
RunNative("loop", Null)
End Sub

Sub Draw
'dmdp10.drawString(1,1,"abc",3,0)
End Sub



B4R version: 1.50
Parsing code. (0.00s)
Compiling code. (0.01s)
Building project (0.02s)
Compiling & deploying Ino project (Arduino Nano - COM4) Error
ayarlar yükleniyor...
paketler ayarlanıyor...
Devre kartları hazırlanıyor...
Dogrulanıyor ve yükleniyor...
In file included from sketch\B4RDefines.h:27:0,
from sketch\B4RArduino.cpp:1:
b4r_main.h:13: error: 'B4RDMD' in namespace 'B4R' does not name a type
static B4R::B4RDMD* _dmd1;
^
exit status 1
'B4RDMD' in namespace 'B4R' does not name a type
 

Attachments

  • dmd-lib.zip
    30.3 KB · Views: 458
Upvote 0

thetrueman

Active Member
Although this is old thread but to continue it for the same question as B4R members have introduced many libraries and examples about different displays so P10, P8, or P5 etc. RGB displays are very good to replace 7-segments displays to display multiple style information.

Here is already a library in the following thread but I would like to expand the capability of B4R to use DMD or any other latest library for such LED matrix panels with ESP8266 to use WiFi or Serial Data to display. Waiting for experts to have a deeper look inside, Thanks.

https://www.b4x.com/android/forum/threads/adafruit-rgb-led-matrix.81157/
 
Upvote 0

thetrueman

Active Member
can you check this wrapper for DMD library ?
Since the library available, I arranged P10 display and studied its connections and then tried the basic DMD library for arduino from freetronics. It worked with Arduino UNO in Arduino 1.8.5 so it confirmed that all boards and connections are fine.

Then I moved to B4R 3.9 and used the library rDMD and its example which gave the errors. By reading logs I found that in DMD.h file included in rDMD.zip, there is path error on line number 47 which I checked from original DMD.h file which I changed from #include <pgmspace.h> to #include <avr/pgmspace.h> but still there are compile errors which logs are attached. Thanks.
 

Attachments

  • B4R Error Logs P10-DMD.txt
    107.5 KB · Views: 8
Upvote 0

candide

Active Member
Licensed User
it seems we have " multiple definition of `DMD::DMD(unsigned char, unsigned char)'"

i don't have issue on a PC but in my case DMD is not installed under arduino

can you remove DMD.h and DMD.cpp in rDMD directory ? just to see if it is better...
 
Upvote 0

thetrueman

Active Member
Thanks candide for hint and I explain to clarify that I just unzipped the rDMD library and put it in additional library folder. DMD.h and DMD.cpp are already included in zip file which were copied with other files. I removed them as you advised and now the compilation completed and uploaded but could not run. There was an error in the end of logs... (Attached)

********************* PROGRAM STARTING ****************
[IDE message - 10:01:30]
An error occurred.
The directory name is invalid

BTW my directory structure is "G:\123\P10 LED Panel\P10 Test B4R"
 

Attachments

  • B4R Error Logs P10-DMD.txt
    64.7 KB · Views: 3
Upvote 0

thetrueman

Active Member
I removed spaces and it complied successfully and log shows "App Start" but there is no display.
I restarted the board but no luck. I re-checked with Arduino, which is OK.

test_DMD project is attached. Thanks.
 

Attachments

  • test_DMD.zip
    2 KB · Views: 1
Upvote 0
Top