Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

SD card read files with LCD

$
0
0
Im trying to read text in SD card and display on the LCD but it display 2 weird characters after the text. What is it and why does it show up?

Here is my code:

Code (Text):
  1.  
  2. #include <SD.h>
  3. #include <SPI.h>
  4.  
  5. #include <LiquidCrystal_I2C.h>
  6. LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7);
  7.  
  8. File myFile;
  9. const int CSpin = 10;
  10.  
  11. void setup() {
  12.   // put your setup code here, to run once:
  13.   Serial.begin(9600);
  14.   pinMode(CSpin, OUTPUT);
  15.   SD.begin(CSpin);
  16.  
  17.   lcd.begin(20,4);
  18.   lcd.setBacklightPin(3,...
SD card read files with LCD

Viewing all articles
Browse latest Browse all 4923

Trending Articles