Jump to content
  • 0

Multiple PMODOLED


CraigA

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

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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.  

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...