TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 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 (137099 times)
  2. FAT32 Library (70236 times)
  3. Network Ethernet Library (56124 times)
  4. USB Device Library (46434 times)
  5. Network WiFi Library (42077 times)
  6. FT800 Library (41387 times)
  7. GSM click (29116 times)
  8. mikroSDK (26562 times)
  9. PID Library (26489 times)
  10. microSD click (25487 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: 3829 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

Magneto 2 click

1

Magneto 2 click is a mikroBUS add-on board with Melexis's MLX90316 monolithic rotary position sensor. Sensing flux density with the IC surface of the MLX90316 allows the click to decode the absolute rotary (angular) position from 0 to 360 degrees.

[Learn More]

EZO Carrier RTD click

0

EZO Carrier Click - RTD is a compact add-on board engineered to provide temperature readings across a broad range of temperatures. This board features the EZO-RTD™, an embedded temperature circuit board from Atlas Scientific.

[Learn More]

RGB Driver click demo example

0

This example is made to demonstrate the operation of the RGB Driver click.

[Learn More]