MicroPython Library
The de2120 module talks to the scanner over a UART at 9600 baud. Create a
DE2120 object with the TX and RX pins you wired (or a UART you made
yourself), call begin(), then poll readBarcode() for scanned codes. The
module also sends the scanner's configuration commands: scan modes, the
illumination and aiming lights, the reading area and the symbology groups.
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 module example and explains every function the example uses to get that result.
MicroPython exampleRead barcodes with the trigger buttonde2120-readBarcode.py: print every code the scanner reads in manual mode.MicroPython exampleRead barcodes continuouslyde2120-continuousRead.py: the scanner reads on its own, without the trigger.MicroPython exampleSend a configuration commandde2120-sendCommand.py: switch the Code ID prefix on and off from the REPL.MicroPython exampleChange scanner settings from the REPLde2120-serialSettings.py: a menu for scanning, lights, reading area, reading mode and symbologies.