News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

Looking for barcode reader to serial port sample codes

Started by JackB, Nov 07, 2025, 02:10 PM

Previous topic - Next topic

JackB

Hello everyone,

does anyone have a simple code listing or can direct me on how to read barcode reader via serial port.

my guess would be with a serin command then writing each incoming byte to an array
then converting the array to it's decimal weight eg:  serial in: 012345    converted to word decimal: 12345

is this the simplest approach

Thanks for all comments.