Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

LCD AIP31068

2 posters

Go down  Message [Page 1 of 1]

1LCD AIP31068 Empty LCD AIP31068 Sun May 02, 2021 6:33 pm

Mistral



Trying some other I2C devices, LCD AIP31068 and most examples on the internet use the library LiquidCrystal_I2C
I think I have tried ten or so but the display is not responding. I looked in the Simulide-share-examples-arduino and there is the display with the Mega and works great. Opening the ino-file it does not use the mentioned library. Maybe the internet examples are based on a display with a different controller chip.


Tried the Oled as well with this program after installing library U8g2 and that worked straight away without any adjustments in code or address. It's in Dutch, my language.

https://github.com/BasOnTech/Arduino-Beginners-NL/blob/master/E18-OLED-I2C-SSD1306-128X64/OLED-I2C-SSD1306-128X64.ino


https://arduino-lessen.nl/les/128x64-i2c-oled-ssd1306-op-arduino-aansluiten

LCD AIP31068 Uno_i213


Very nice and amazing that these things can be simulated.
Looked in examples again and the Oled is there as well and is even better with colors but it can't do harm to have an extra program available.
@Feri, glad you have solved it and Arcachofo thank you very much again for your explanations. Tomorrow I'll continue with the Pic-projects but it was and is very nice to have used the Arduino again.

2LCD AIP31068 Empty Re: LCD AIP31068 Mon May 03, 2021 1:50 pm

arcachofo

arcachofo

As this post is not related to the original thread I splited to a new topic.


Trying some other I2C devices, LCD AIP31068 and most examples on the internet use the library LiquidCrystal_I2C
I think I have tried ten or so but the display is not responding.
Maybe that library is too old?
Try this one:
https://www.arduino.cc/reference/en/libraries/liquidcrystal_aip31068/

3LCD AIP31068 Empty Re: LCD AIP31068 Mon May 03, 2021 7:55 pm

Mistral



I think I am doing something wrong and don't like to take your time because of my own lack of programming skills but maybe it is helpfull for others as well. Maybe they are both old because also the second library AIP31068 is not working, not even compiling so it's even worse.
I downloaded the zip and took an example from that extracted folder - hello world
I get this error:
LiquidCrystal_AIP31068_SPI.cpp:5:22: fatal error: SoftSPIB.h: No such file or directory
But it is Installed:


LCD AIP31068 Aip31010

https://www.arduino.cc/reference/en/libraries/liquidcrystal_aip31068/
https://www.arduino.cc/reference/en/libraries/liquidcrystal-i2c/

If I want to use the AIP31068 I'll take the example with the Mega that you have made and take it from there because that one is working very well. Thanks.

4LCD AIP31068 Empty Re: LCD AIP31068 Mon May 03, 2021 8:03 pm

arcachofo

arcachofo

LiquidCrystal_AIP31068 depends on another library for SPI communication:
https://github.com/red-scorp/LiquidCrystal_AIP31068

You can install that library or just delete/move (losing SPI mode): LiquidCrystal_AIP31068_SPI.cpp and LiquidCrystal_AIP31068_SPI.h

5LCD AIP31068 Empty Re: LCD AIP31068 Mon May 03, 2021 8:47 pm

Mistral



Tnx, you gave the solution although I did not follow all your steps. 
Your link:
https://github.com/red-scorp/LiquidCrystal_AIP31068
I zipped it and took example from there - not working. Then I read his Readme text:
This library requires SoftSPIB  - Software SPI library with 9-bit transfer support.
I installed that library:


LCD AIP31068 Uno_i214


And now the previous file with the LiquidCrystal_AIP31068_I2C library is working good. This is the result:


LCD AIP31068 Uno_i215


Finally it's working, thank you very much  LCD AIP31068 1f600 
Code:
//YWROBOT
//Compatible with the Arduino IDE 1.0
//Library version:1.0
#include <LiquidCrystal_AIP31068_I2C.h>

LiquidCrystal_AIP31068_I2C lcd(0x3E,20,4);  // set the LCD address to 0x3E for a 20 chars and 4 line display

void setup()
{
  lcd.init();                      // initialize the lcd
  // Print a message to the LCD.
  lcd.setCursor(3,0);
  lcd.print("Hello, world!");
  lcd.setCursor(2,1);
  lcd.print("Ywrobot Arduino!");
   lcd.setCursor(0,2);
  lcd.print("Arduino LCM IIC 2004");
   lcd.setCursor(2,3);
  lcd.print("Power By Ec-yuan!");
}


void loop()
{
}

arcachofo likes this post

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum