Hi all, Anyone ever get prototmatter to work with RP2040 connect board? I am getting a bunch of errors when I try to use it. I had it working fine on a mkrwifi1010 connect board but ran out of memory - so I upgraded to RP2040connect board. All the other parts of my code run, but when I try to include the protmatter, I get weird errors like this:
C:\Users\richa\Documents\Arduino\libraries\Adafruit_Protomatter\src\core.c: In function '_PM_begin':
C:\Users\richa\Documents\Arduino\libraries\Adafruit_Protomatter\src\core.c:312:32: error: '_PM_timerFreq' undeclared (first use in this function); did you mean '_PM_timerStop'?
uint32_t minPeriodPerFrame = _PM_timerFreq / _PM_MAX_REFRESH_HZ;
^~~~~~~~~~~~~
_PM_timerStop
C:\Users\richa\Documents\Arduino\libraries\Adafruit_Protomatter\src\core.c:312:32: note: each undeclared identifier is reported only once for each function it appears in
exit status 1
Error compiling for board Arduino Nano RP2040 Connect.
Seems like there are some things missing in the #defines.
I am using the deprecated MBED OS boards package - if I use the non-deprecated one it prevents downloading of even the blink sketch.
Thanks for any suggestions!
Protomatter with arduino RP2040 connect
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Protomatter with arduino RP2040 connect
It looks like the Adafruit_Protomatter library has support for the rp2040.
https://github.com/adafruit/Adafruit_Pr ... 2040.h#L74
I suspect this would work fine on a Pico Pi or Feather RP2040. I wonder if your board is being identified correctly being an Arduino Nano based RP2040.
https://github.com/adafruit/Adafruit_Pr ... 2040.h#L74
I suspect this would work fine on a Pico Pi or Feather RP2040. I wonder if your board is being identified correctly being an Arduino Nano based RP2040.
- adafruit2
- Posts: 22144
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Protomatter with arduino RP2040 connect
we only support the philhower core for rp2040, you may want to ask arduino to help add support for their core
- richardhampo
- Posts: 6
- Joined: Wed Dec 22, 2021 10:15 am
Re: Protomatter with arduino RP2040 connect
Hi - can you please elaborate? I do not understand your comment about the core and why it is not supported? Are there any modifications I can make to the library to get it to compile and work?adafruit2 wrote:we only support the philhower core for rp2040, you may want to ask arduino to help add support for their core
Thank you!
- richardhampo
- Posts: 6
- Joined: Wed Dec 22, 2021 10:15 am
Re: Protomatter with arduino RP2040 connect
Hi Mikey,mikeysklar wrote:It looks like the Adafruit_Protomatter library has support for the rp2040.
https://github.com/adafruit/Adafruit_Pr ... 2040.h#L74
I suspect this would work fine on a Pico Pi or Feather RP2040. I wonder if your board is being identified correctly being an Arduino Nano based RP2040.
I thought there was something missing also in the board ID so I did #define of __RP2040__ and then got further errors. I did more #defines and got further and further down the rabbit hole.... It is a bit frustrating because I got a whole application working on a MKR1010 but ran out of memory to run a 3 wide 64x32 display. So that is why I got a RP2040 - it has 256kb SRAM.
There must be something I can do to fix the compile errors.
Alternately - do you know of any other arduino compatible display libraries that work with multiple displays?
Thanks!!
Richard
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Protomatter with arduino RP2040 connect
Richard,
If you would like to use an RP2040 based board it will have to be one listed in philhower’s supported boards:
https://github.com/earlephilhower/ardui ... ted-boards
I would recommend using a Feather RP2040.
If you want to experiment with multiple RGB panels (chaining) you can take a look at these guides. The first uses our RGBMatrix library. The second links for using a MatrixPortal setup.
https://learn.adafruit.com/rgb-led-matr ... g-of-BANNED
https://learn.adafruit.com/rgb-led-matr ... ple-panels
If you would like to use an RP2040 based board it will have to be one listed in philhower’s supported boards:
https://github.com/earlephilhower/ardui ... ted-boards
I would recommend using a Feather RP2040.
If you want to experiment with multiple RGB panels (chaining) you can take a look at these guides. The first uses our RGBMatrix library. The second links for using a MatrixPortal setup.
https://learn.adafruit.com/rgb-led-matr ... g-of-BANNED
https://learn.adafruit.com/rgb-led-matr ... ple-panels
- adafruit2
- Posts: 22144
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Protomatter with arduino RP2040 connect
yah there are two 'cores' for rp2040 - the arduino official one (for their boards) and the philhower core (for everyone elses!) - right now protomatter only supports the latter. arduino could add support for their core into protomatter if they have time!
- richardhampo
- Posts: 6
- Joined: Wed Dec 22, 2021 10:15 am
Re: Protomatter with arduino RP2040 connect
Hi Mikey, The list for the pico supported boards you mentioned includes the nano RP2040 connect that I am using. I loaded that board package and selected nano RP2040 connect board but get even more compile errors. I am not familiar with the feather boards - but I need lots of SRAM and wifi chip, and ability to have EEPROM (I use serial EEPROM on I2C now).mikeysklar wrote:Richard,
If you would like to use an RP2040 based board it will have to be one listed in philhower’s supported boards:
https://github.com/earlephilhower/ardui ... ted-boards
I would recommend using a Feather RP2040.
If you want to experiment with multiple RGB panels (chaining) you can take a look at these guides. The first uses our RGBMatrix library. The second links for using a MatrixPortal setup.
https://learn.adafruit.com/rgb-led-matr ... g-of-BANNED
https://learn.adafruit.com/rgb-led-matr ... ple-panels
I will look at the RGBmatrix library and matrixportal and see if I can extend to wider display. THanks for your comments and assistance!
- richardhampo
- Posts: 6
- Joined: Wed Dec 22, 2021 10:15 am
Re: Protomatter with arduino RP2040 connect
Hi,adafruit2 wrote:yah there are two 'cores' for rp2040 - the arduino official one (for their boards) and the philhower core (for everyone elses!) - right now protomatter only supports the latter. arduino could add support for their core into protomatter if they have time!
I loaded the arduino board package for philhower cores - (https://learn.adafruit.com/rp2040-ardui ... hower-core)
and none will compile the protomatter display test program without bunches of errors. Is this expected? I tried plain RPI pico, feather 2040, and several others. I thought that the philhower package would make protomatter compile properly. Any thoughts?
I really don't want to have to rewrite my program from C to python to use the circuit python RGB matrix library, I am an old school C guy.
I am really bummed that I cannot find a way to get simple text to show on RGB matrix with the RP2040 connect board. Any wild ideas?
Thanks for your continued suggestions.
- adafruit2
- Posts: 22144
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Protomatter with arduino RP2040 connect
ooh oops it actually doesnt work in arduino - not sure if it ever did tbh - it only works in raspberry pi at this time. not sure what it would take to get it in arduino. your best bet with the hardware is to go for circuitpython!
Please be positive and constructive with your questions and comments.