Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have found an issue with the LCD display Output #9887

Closed
Camo2000 opened this issue Mar 18, 2020 · 8 comments
Closed

I have found an issue with the LCD display Output #9887

Camo2000 opened this issue Mar 18, 2020 · 8 comments
Labels
Library: LiquidCrystal The LiquidCrystal Arduino library Type: Bug

Comments

@Camo2000
Copy link

Camo2000 commented Mar 18, 2020

I have found an issue with the LCD display Output, it works fine until you add the word "Mode" as a string. The display then corrupts and I can not see why unless there is a method to control the LED display with text. However if you use any string with the word in it, it still corrupts:-
"Mode"
"Edit Mode"
"Active Mode"
All fail.

String MyTitles[ARRAYSIZE]={"Mode", "Effect", "Pallete", "Sin8", "Sin16", "Speed", "LED Spacing"};
this fails if Mode is in the list

Hope some of you can replicate this.

@per1234 per1234 added Type: Bug Waiting for feedback More information must be provided before we can proceed labels Mar 18, 2020
@per1234
Copy link
Collaborator

per1234 commented Mar 18, 2020

Please post your full sketch.

@Camo2000
Copy link
Author

Camo2000 commented Mar 18, 2020

#define ARRAYSIZE 7
String newtit[ARRAYSIZE]={"Apple","Effect","Pallete","Sin8","Sin16","Speed","LED Spacing"};
int iValues[ARRAYSIZE] = {1,2,3,4,5,6,7};
#include <LiquidCrystal.h>
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 7;// initialize the library by associating any needed LCD interface pin
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);// with the arduino pin number it is connected to

void setup() { 
  Serial.begin(9600); 
  lcd.begin(16, 2); // set up the LCD's number of columns and rows:
  lcd.print("Display Active"); // Print a message to the LCD.
  delay(2000);
}
void loop() {
  int iSelection=0;
  lcd.setCursor(0, 1);
  String message =(String)"A" + iValues[iSelection] + " " + newtit[iSelection] + "          ";
  Serial.println(message);
  lcd.print(String(message));
  delay(5000);
}

@Camo2000
Copy link
Author

Camo2000 commented Mar 18, 2020

just change the word "APPLE" to "Mode" and the LCD will fail or any word in the array once accessed.
use int iSelection=0; to select the array space Apple is 0 but you can put the word Mode anywhere in the array and when accessed it fails.
It also fails on the word "Mod" maybe this is what it is picking out
PLEASE NOTE: the serial.print works fine, it is the LCD.PRINT that fails

@per1234
Copy link
Collaborator

per1234 commented Mar 18, 2020

Which board are you using?

@Camo2000
Copy link
Author

it is the standard LCD board 1602A

@per1234
Copy link
Collaborator

per1234 commented Mar 19, 2020

Which Arduino board. For example: Uno, Leonardo, Mega, MKRZero, Nano 33 IoT...

@Camo2000
Copy link
Author

Uno R3, but the board seems to be working the LCD only fails if a word containing this sequence "MOD" are sent to the LCD

@per1234 per1234 removed the Waiting for feedback More information must be provided before we can proceed label Mar 19, 2020
@per1234 per1234 added the Library: LiquidCrystal The LiquidCrystal Arduino library label Sep 30, 2020
@per1234
Copy link
Collaborator

per1234 commented Mar 28, 2021

Transferred to arduino-libraries/LiquidCrystal#44

@per1234 per1234 closed this as completed Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Library: LiquidCrystal The LiquidCrystal Arduino library Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants