Olimex Support Forum

DUINO => SHIELDS => Topic started by: yak on October 12, 2020, 09:11:56 PM

Title: SHIELD-LCD16x2, can't add library to Arduino IDE
Post by: yak on October 12, 2020, 09:11:56 PM
Hello,

When I try to add the SHIELD-LCD16x2 library (OLIMEXINO-328-LCD16x2.zip from https://www.olimex.com/Products/Duino/Shields/SHIELD-LCD16x2/open-source-hardware to the Arduino IDE (via menu Skets - include library - add .ZIP library) I get error message
"The library "Olimexino-328+LCD16x2" cannot be used.
Library names must contain only basic letters and numbers.
(ASCII only and no spaces, and it cannot start with a number)"

When I unzip the package myself and place it is the library directory in get a similar error about invalid characters in the file name.
I am using arduino IDE version 1.8.13
Title: Re: SHIELD-LCD16x2, can't add library to Arduino IDE
Post by: LubOlimex on October 13, 2020, 08:29:19 AM
Did you follow the instructions in this document:

https://www.olimex.com/Products/Duino/_resources/Arduino_instructions.pdf
Title: Re: SHIELD-LCD16x2, can't add library to Arduino IDE
Post by: yak on October 13, 2020, 06:22:28 PM
I did follow that procedure as far as possible. The procedure descibed in that document does not seem to match with the current version of the Arduino IDE.

I have Arduino IDE up and running with an Arduino Uno. 
I have also already added other libraries and build project with them without problems.

I have added the  JSON link for Olimex AVR boards successfully, I can select the Olimex AVR boards in the AVR tools menu.

In can load and compile the Olimex examples.

Adding libray OLIMEXINO-328-LCD16x2.zip (https://olimexino-328-lcd16x2.zip/) does not go well, as I have described in my original message.
Please check it.
Title: Re: SHIELD-LCD16x2, can't add library to Arduino IDE
Post by: LubOlimex on October 14, 2020, 08:32:12 AM
QuoteAdding libray OLIMEXINO-328-LCD16x2.zip does not go well, as I have described in my original message. Please check it.

Maybe I wasn't clear: you don't need to add the library neither via Sketch -> Include Library, nor via manual extraction. It is already loaded when you load the Olimex AVR boards json link in preferences.

(https://i.imgur.com/W3WOGac.jpg)
Title: Re: SHIELD-LCD16x2, can't add library to Arduino IDE
Post by: yak on October 15, 2020, 06:28:13 PM
Hello,

thanks for the clarification.

It looks a bit strange to me that you added the examples as examples for the  OLIMEXINO-328 and not just as examples for the SHIELD-LCD16x2 library.

Now I can only see the examples if I select an Olimex AVR board in Arduino IDE while I am using Arduino Uno.

To run the SHIELD-LCD16x2 example on Arduino IDE with the Olimex LCD I had to:
- Select OLIMEXINO-328 board in Arduino IDE.
- Open the SHIELD-LCD16x2 example
- Save it
- Select Arduino Uno board in the IDE
- Change the reference to "wire.h" in LCD16x2.cpp to "#include <Wire.h>"

It would have been more easier if you just provided the SHIELD-LCD16x2 with examples, without having to select the OLIMEXINO-328 board.

Thanks anyway,
Title: Re: SHIELD-LCD16x2, can't add library to Arduino IDE
Post by: LubOlimex on October 16, 2020, 08:12:03 AM
Glad you managed to get it going! Examples are connected to specific boards in Arduino IDE. We don't have Arduino Uno board to confirm whether our example works with Arduino Uno so we tie it with the hardware we have at hand, like OLIMEXINO-328 and other Olimex-made Arduino-like boards.