I am having a rough time getting my 40x4 lcd to init on the teensy 4.1.
I am using the 3.3 Volt resistor mod described on this help page: https://www.pjrc.com/teensy/td_libs_LiquidCrystal.html
Currently, I suspect the 3.3 Volt resistor mod doesn't work on the teensy 4.1. Is that true?
edit: After some googling, it seems that the 1k series resistor method relies on the teensy chip to have internal protection diodes on it's inputs. source
Does the teensy 4.x use clamp diodes for esd?
Nothing special in my code, is the example from the LiquidCrystalFast library.
I am using the 3.3 Volt resistor mod described on this help page: https://www.pjrc.com/teensy/td_libs_LiquidCrystal.html
- Works ok-ish using LiquidCrystal, but I can only init half the display.
- Works perfect on my 5V tolerant teensy 3.2 without 1k resistors on the lcd data pins.
Currently, I suspect the 3.3 Volt resistor mod doesn't work on the teensy 4.1. Is that true?
edit: After some googling, it seems that the 1k series resistor method relies on the teensy chip to have internal protection diodes on it's inputs. source
Does the teensy 4.x use clamp diodes for esd?
Nothing special in my code, is the example from the LiquidCrystalFast library.
Code:
// include the library code:
#include <LiquidCrystalFast.h>
// initialize the library with the numbers of the interface pins
LiquidCrystalFast lcd( 2, 3, 0, 1, 7, 6, 5, 4);
// LCD pins: RS RW EN1 EN2 D4 D5 D6 D7
void setup(){
// set up the LCD's number of rows and columns:
lcd.begin(40, 4);
// initialize the serial communications:
Serial.begin(9600);
}
void loop()
{
// when characters arrive over the serial port...
if (Serial.available()) {
// wait a bit for the entire message to arrive
delay(100);
// clear the screen
lcd.clear();
// read all the available characters
while (Serial.available() > 0) {
// display each character to the LCD
lcd.write(Serial.read());
}
}
}
Last edited: