Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - mprowe

Pages: [1]
OLEDs / Re: NHD-0216AW-IB3 with Arduino Uno Code example?
« on: June 06, 2017, 10:04:59 AM »
Hi Chris,

Short note to bring you up to date with my latest testing.

I have installed the Windows Aurduino IDE (1.8.3) in an attempt to replicate your success. Unfortunately, your example will still will not compile using the OLedI2C library. The error log is almost exactly the same as I get on my Linux machine.

Secondly, to try and avoid any OS dependency’s,  I have done the same using the official web based workbench, Arduino Create. Yet again, no compilation success!! I have posted the verbose error log here At my (low-level) of understanding all three logs seem similar. To me, it is suggesting a path-resolution problem in OLedI2C.ccp or its dependencies?

I am guessing that your Windows machine has had a personal environment variable setup that is allowing you to compile?

Regards, Martin

OLEDs / Re: NHD-0216AW-IB3 with Arduino Uno Code example?
« on: May 27, 2017, 06:47:04 AM »
Hi Chris,

Thank you very much for staying with me on this. It is greatly appreciated.  Looking at the "Library in the wrong location" first.
While yes, it could be, but this is the results of this line of inquiry here.

1. I have three library locations (don't know why?), they are:
   a) /home/mprowe/Arduino/libraries/
   b) /home/mprowe/.arduino15/packages/arduino/hardware/avr/1.6.18/libraries/
   c) /opt/arduino-1.8.0/libraries/

2. For testing purposes only, I have put your library in all three locations - with a customized file.

3. The log output (below) shows that it has found all three  & is using the copy at (2.b) see lines 86 to 89. This is alongside the wire library.

Code: [Select]
74 Linking everything together...
75 "/home/mprowe/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-gcc" [.... truncated by me]
76 /tmp/ccVbwl16.ltrans0.ltrans.o: In function `__static_initialization_and_destruction_0':
77 /home/mprowe/Arduino/nhd-i2c/oled-example/oled-example.ino:16: undefined reference to `OLedI2C::OLedI2C()'
78 /tmp/ccVbwl16.ltrans0.ltrans.o: In function `setup':
79 /home/mprowe/Arduino/nhd-i2c/oled-example/oled-example.ino:24: undefined reference to `OLedI2C::init(unsigned char)'
80 /tmp/ccVbwl16.ltrans0.ltrans.o: In function `loop':
81 /home/mprowe/Arduino/nhd-i2c/oled-example/oled-example.ino:29: undefined reference to `OLedI2C::sendString(char const*, unsigned char, unsigned char)'
82 /home/mprowe/Arduino/nhd-i2c/oled-example/oled-example.ino:30: undefined reference to `OLedI2C::sendFloat(float, unsigned char, unsigned char, unsigned char, unsigned char)'
83 /tmp/ccVbwl16.ltrans0.ltrans.o: In function `_GLOBAL__sub_D_LCD':
84 /home/mprowe/Arduino/nhd-i2c/oled-example/oled-example.ino:16: undefined reference to `OLedI2C::~OLedI2C()'
85 collect2: error: ld returned 1 exit status
86 Multiple libraries were found for "OLedI2C.h"
87  Used: /home/mprowe/.arduino15/packages/arduino/hardware/avr/1.6.18/libraries/OLedI2C
88  Not used: /home/mprowe/Arduino/libraries/OLedI2C.home
89  Not used: /opt/arduino-1.8.0/libraries/OLedI2C.opt
90 Using library Wire    at version 1.0 in folder: /home/mprowe/.arduino15/packages/arduino/hardware/avr/1.6.18/libraries/Wire
91 Using library OLedI2C at version 1.0 in folder: /home/mprowe/.arduino15/packages/arduino/hardware/avr/1.6.18/libraries/OLedI2C
92 exit status 1
93 Error compiling for board Arduino/Genuino Uno.

4. Compiling with only one copy of the OLedI2C in each location. First run with OLedI2C in 2.a), second run with OLedI2C in 2.b) and finaly with OLedI2C in location 2.c) still results in a compilation error?

5. I have placed a full copy of the compilation log This is what I meant in the last over, about sharing the full log file. In many forums you can upload and link these files but I can not find any way to do the same on this site? If you can find the time to have a look at the whole whole log file in the hope that any other clues should "jump out"?

Best regards, Martin

OLEDs / Re: NHD-0216AW-IB3 with Arduino Uno Code example?
« on: May 11, 2017, 01:22:56 PM »
Oh, I'm really sorry Chris,

But it is still no-go for me! I've pasted the first few "red" lines below. Is there a more effective way to give you the compilation log?
The message in the Arduino IDE output window is "Error compiling for board Arduino/Genuino Uno"  - This is where I started?

Code: [Select]
Linking everything together...
"/home/mprowe/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-gcc"  [... truncated ...]
/tmp/ccnQrlgR.ltrans0.ltrans.o: In function `__static_initialization_and_destruction_0':
/home/mprowe/Arduino/nhd-i2c/oled-example/oled-example.ino:11: undefined reference to `OLedI2C::OLedI2C()'
/tmp/ccnQrlgR.ltrans0.ltrans.o: In function `setup':

Regards, Martin

OLEDs / Re: NHD-0216AW-IB3 with Arduino Uno Code example?
« on: May 10, 2017, 04:49:03 AM »
Thank you Chris,

Think I have installed the libraries & example correctly. But....

Isn't there always? Anyway, this is what I get (abridged) when I try to compile:
Code: [Select]

/home/mprowe/Arduino/libraries/OLedI2C/OLedI2C.h:22:8: note: void OLedI2C::init()
   void init();
/home/mprowe/Arduino/libraries/OLedI2C/OLedI2C.h:22:8: note:   candidate expects 0 arguments, 1 provided

This is the faulting line (should I2C_ADDR be there?):
Code: [Select]
  LCD.init(I2C_ADDR); // initialize the lcd with I2C AddressThere is also a call to LCD.print (line 98)  which is not in the library.

Regards, Martin

OLEDs / Re: NHD-0216AW-IB3 with Arduino Uno Code example?
« on: May 05, 2017, 02:33:46 AM »
This code will work for both the Arduino Uno and Mega.

Thank you for the advice,

Unfortunately it does not work for me?
If I try and compile the example sketch "NHD_0216AW_XB3", yes it will compile without errors for the MEGA,
but when I change my Board to UNO, it will not?

As, it seems, I can not attach a text file with the full compilation output, I offer only the first error seen & hope it provides sufficient clues:

Code: [Select]
/home/mprowe/Arduino/libraries/NHD_US2066/NHD_US2066.cpp: In function 'void command(unsigned char)':
/home/mprowe/Arduino/libraries/NHD_US2066/NHD_US2066.cpp:14:15: error: 'PORTA' was not declared in this scope
               PORTA = c;

Sorry that my skills do not allow me to debug this on my own. So any pointers will be most welcome.

Regards, Martin

OLEDs / NHD-0216AW-IB3 with Arduino Uno Code example?
« on: May 04, 2017, 04:33:44 AM »

As the subject says, I am hoping that someone can offer me an example of using this display via the I2C interface from the Arduino Uno.
I know that there is an example for the Mega. And for the Uno using the SPI interface. Neither of which, I have been able to convert.

Additionally,  can I hard-wire the /res line low? Or does it need to be toggled during a setup phase?

Regards, Martin

Pages: [1]