Arduino Library
The Soldered DE2120 library talks to the scanner over UART. Include
DE2120-SOLDERED.h and create a DE2120_Soldered object, then hand it a
hardware or software serial port with begin(). It reads scanned codes and
sends the scanner's configuration commands: scan modes, the illumination and
aiming lights, the reading area and the symbology groups. The library is based
on SparkFun's DE2120 Arduino library.
The scanner has to be in UART mode first: scan the POR232 configuration barcode once, as the Quick Start shows.
Not installed yet? Follow Quick Start before using the functionality pages.
Functionality
Each page starts with one verified library example and explains every function the example uses to get that result.
Arduino exampleRead barcodes over a hardware UARTHardwareScan: an ESP32 reads every scanned code through UART2 and prints it.Arduino exampleRead barcodes over SoftwareSerialSoftwareScan: the same scan loop on two pins driven by SoftwareSerial.Arduino exampleSend a configuration commandSendCommand: switch the Code ID prefix on and off with sendCommand().Arduino exampleChange scanner settings from the Serial MonitorSerialSettings: a menu for scanning, lights, reading area, reading mode and symbologies.