Go Down

Topic: SainSmart IIC/I2C/TWI Serial 2004 20x4 print issues solved (Read 311 times) previous topic - next topic


The sketch, in brief:


#include <Adafruit_NeoPixel.h>

#ifdef __AVR__
  #include <avr/power.h>

#include <wavTrigger.h>

#include <AltSoftSerial.h>

#include <LiquidCrystal_I2C.h>

#include <Wire.h>

wavTrigger wTrig;

#define PIN 6
#define NUMPIXELS 24
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);


I have a project that monitors micro temp changes in the room.  I use a wav trigger to announce it and an LCD to display the event information.

I had to reload my OS because my PC was bogged down with background apps and housekeeping.  Reinstalled the IDE.  Got back to the project work and uploaded a new sketch.  On launch everything worked except the LCD.  It was only printing the first letter of the display statement. Up to 4 lines of display and only one character at the beginning of each display line.

I spent the day trying to test different libraries with no success. Anxiety abounded.  Went for a walk-about and got the idea to try one of the older IDEs.  That fixed it. I installed 1.0.6 Classic IDE and it solved the problem.

Anyone know how to fix the current version issue?


Sometime in the early 1.6.x timeframe the behavior of print was tweaked (it has to return something to signal that each character was sent). Old versions of the LCD libraries don't do this.

Use a current version of the LCD library to make it work.
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

Go Up