hello, im having trouble in displaying the value in barcode
can u help me?
im using wemos d1 because im also gonna try to connect it to the server to get details about the barcode and display in the LCD the amount
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <SoftwareSerial.h>
SoftwareSerial barcode(6, 7); // RX, TX
LiquidCrystal_I2C lcd(0x3F,16,2); // set the LCD address to 0x3F for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
lcd.setCursor(0,0);
lcd.print("NAME:");
pinMode(6,INPUT);
pinMode(7,OUTPUT);
}
void loop()
{
if (barcode.available())
{
lcd.setCursor(0,1);
lcd.println(barcode.read());
}
}

can u help me?
im using wemos d1 because im also gonna try to connect it to the server to get details about the barcode and display in the LCD the amount
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <SoftwareSerial.h>
SoftwareSerial barcode(6, 7); // RX, TX
LiquidCrystal_I2C lcd(0x3F,16,2); // set the LCD address to 0x3F for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
lcd.setCursor(0,0);
lcd.print("NAME:");
pinMode(6,INPUT);
pinMode(7,OUTPUT);
}
void loop()
{
if (barcode.available())
{
lcd.setCursor(0,1);
lcd.println(barcode.read());
}
}
