chipKIT® Development Platform

Inspired by Arduino™

PMODOLED Libaray modification no function with MX7

Created Thu, 31 Dec 2015 15:34:09 +0000 by MRuoss


MRuoss

Thu, 31 Dec 2015 15:34:09 +0000

Hello Community, tried the library PMODOLED adapt, so that I can use from my Cerebot Pro MX7 at port JE. Unfortunately, however, comes only noise from the display. Has anyone any idea what I have done wrong?

thank all inputs and a happy new year


majenko

Thu, 31 Dec 2015 15:49:00 +0000

You're much better off using DisplayCore (http://displaycore.org/) since it is a much more fully featured graphics framework than the PmodOled library.

Just yesterday I added full support for the Pmod OLED through any of the 6 Pmod connectors on the MX7cK board - three using hardware SPI and three using software bit-banging, so you can use any socket you like.

There are even socket-specific profile constructors for the MX7cK to make it easier for you:

#include <SST1306.h>
SST1306_PMOD_E tft;

void setup() {
    tft.initializeDevice();
}

void loop() {
    tft.setCursor(0, 0);
    tft.print(millis());
}

MRuoss

Thu, 31 Dec 2015 15:56:32 +0000

Hy mojenko, thanks for your input. I assume that this library is available only with UECIDE. I'm using the MPLAB X 3.15V for my project.

best regard


majenko

Thu, 31 Dec 2015 16:09:13 +0000

It's available for UECIDE and MPIDE. For MPLAB-X you're on your own I'm afraid.


MRuoss

Thu, 31 Dec 2015 16:15:19 +0000

Hy Majenko, I've tried. Unfortunately it does not work and I do not recognize the errors in the code. Therefore I ask here in the forum at the experienced programmer after what I have done wrong. But I am grateful for your note for the library for the UECIDE.

best regard


majenko

Thu, 31 Dec 2015 16:27:13 +0000

Some time tomorrow I might have an answer for you - this is why I never use MPLAB-X. Even on my quad core Xeon with 12GB RAM etc it is so slow it's unusable.


majenko

Thu, 31 Dec 2015 16:31:04 +0000

Which version of XC32 are you using? The reason I ask is this library seems to rely heavily on plib.h and plib.h has been deprecated for some time - in fact in the latest version of XC32 it's disabled by default (moved to a "lega-c" folder).


majenko

Thu, 31 Dec 2015 16:40:06 +0000

Well, I can't even begin to get that compile using my copy of the oled library. Can you zip and post your entire MPLAB-X project so I can just open it and hit compile?


MRuoss

Thu, 31 Dec 2015 16:47:24 +0000

I use the Version X32 1.40 and the plib32 PIC32 Legacy Peripheral Libraries from the microchip website. Thanks for your support.


MRuoss

Thu, 31 Dec 2015 16:53:14 +0000

Hy my MPLAB Project [attachment=0]OLED3.zip[/attachment]


majenko

Thu, 31 Dec 2015 17:09:00 +0000

Ok, found the problem. Just a small one :)

In your pin definitions you are using port F instead of port E for prtDataCmd.

#define	prtDataCmd	IOPORT_E // Was F

MRuoss

Thu, 31 Dec 2015 17:31:24 +0000

Super Thank you running now. I overlooked that simply. Wishes a happy new year.