Question

Hi There,

I'm using an Arty-S7 board and am connecting PMODOLEDs to all 4 PMOD connecters (JA, JB, JC, JD).  The example that comes with the driver only talks to the PMOD connected to JA, and it works like a champ.  Looking at the code and header files, though, I'm not seeing how to talk to the other PMODs.  What should I change to talk to the PMODOLEDs on JB, JC or JD.  Be gentle, I'm really a hardware guy and using this to learn a little more about C-programming and to that end, the less amount of hacking needed the better.  

Thanks!

Craig

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

I think I just figured it out.  In DemoInitialize, you get a handle back to the PMOD you're using:

   OLED_Begin(&myDevice, XPAR_PMODOLED_0_AXI_LITE_GPIO_BASEADDR,
         XPAR_PMODOLED_0_AXI_LITE_SPI_BASEADDR, orientation, invert);

I just need to run this 4 times with 4 different "&myDevice"'s and PMODOLED_1, 2, etc.

I'll try it and report back.  

Share this post


Link to post
Share on other sites
  • 0

Hi @CraigA,

"I just need to run this 4 times with 4 different "&myDevice"'s and PMODOLED_1, 2, etc." this is correct along with using the different functions in main with the 4 different "&myDevice"'s and PMODOLED_1, 2, 3,4.

thank you,

Jon

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.