Barcode Scanner Display (Wemos D1)

Thread Starter

airra mae basas 1

Joined Jul 24, 2017
21
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());
}
}
28109902_10209627108628509_1059777446_n.jpg 28125310_10209627108588508_845206813_o.jpg 28170033_10209627108548507_1132457650_o.jpg
 
Top