TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136551 times)
  2. FAT32 Library (69744 times)
  3. Network Ethernet Library (55849 times)
  4. USB Device Library (46186 times)
  5. Network WiFi Library (41808 times)
  6. FT800 Library (40999 times)
  7. GSM click (28928 times)
  8. PID Library (26385 times)
  9. mikroSDK (26288 times)
  10. microSD click (25302 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

Barcode click

Rating:

5

Author: MIKROE

Last Updated: 2018-03-30

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Miscellaneous

Downloaded: 3775 times

Not followed.

License: MIT license  

Barcode click is a very fast and agile barcode scanner on a click board, which is compliant with a wide range of different 1D and 2D barcode protocols.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Barcode click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Barcode click" changes.

Do you want to report abuse regarding "Barcode click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Barcode click

Barcode click

Native view of the Barcode Click board.

View full image
Barcode click

Barcode click

Front and back view of the Barcode Click board.

View full image

Library description

Initializes and defines UART and GPIO drivers. It also defines driver functions for UART bus communication which enable barcode scanning and barcode scanner restart. Check the documentation for more details.

Key functions:

uint8_t barcode_readyData() - The function checks whether the RX buffer received new data.

uint8_t barcode_readData() - The function reads and returns one byte which is received in the RX buffer.

void barcode_enableScaning(const uint8_t state) - The function enables or disables barcode scanning, depending on the parameter value.

void barcode_enableReset(const uint8_t state) - The function enables or disables barcode scanner reset, depending on the parameter value.

Examples description

  • System Initialization - Initializes peripherals, UART interrupt and pins.
  • Application Initialization - Initializes click driver.
  • Application Task - The click enables barcode scanning in 2 seconds intervals and then disables scanning also in 2 seconds interval. When the barcode is scanned, UART interrupt will be enabled and the barcode will be stored in the temp buffer.
void applicationTask()
{
    barcode_enableScaning(_BARCODE_LOGIC_ON);
    Delay_ms(2000);
    barcode_enableScaning(_BARCODE_LOGIC_OFF);
    Delay_ms(2000);
}
//UART Interrupt addition function is used for enabling receiving every transived byte.
void RX_ISR() iv IVT_INT_USART3 ics ICS_AUTO
{
   if( RXNE_USART3_SR_bit )
   {
       temp[i++] = USART3_DR;
   }
}

 

Additional notes and information

Depending on the development board you are using, you may need USB UART click,  USB UART 2 click or  RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

ALSO FROM THIS AUTHOR

GSM-GPS click

0

GSM-GPS click is a mikroBUS add-on board with a SIM808 module that combines GSM/GPRS and GPS into a single device.

[Learn More]

RFID 2 click

0

RFID 2 Click is a compact add-on board that contains a stand-alone RFID reader with a built-in antenna easy-to-use for embedded applications. This board features the ID-12LA-SA, an advanced low-cost RFID reader module usable with 38 different tags from ID Innovations.

[Learn More]

USB to I2C 2 click

0

USB to I2C 2 Click is a compact add-on board that contains a general-purpose USB to I2C serial interface. This board features the FT201X, a full-speed USB to I2C protocol converter from FTDI. The FT201X converts USB2.0 full-speed to an I2C serial interface capable of operating up to 3.4MBit/s, with low power consumption (typical 8mA). The entire USB protocol is handled on the chip itself, where no USB-specific firmware programming is required. It also has a fully-integrated 2048 byte Multi-Time-Programmable (MTP) memory for storing device descriptors and CBUS I/O user-desirable configuration. This Click board™ includes the complete FT-X series feature set and enables USB to be added into a system design quickly and easily over an I2C interface.

[Learn More]