Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.
/ pyBA63 Public archive

Handle BA63 USB HID line display with ease.

License

Notifications You must be signed in to change notification settings

Ousret/pyBA63

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyBA63 0.1.6

Python based driver for Wincor Nixdorf BA63 USB HID line display. Most used for point-of-sale.

Installation

Via PyPi

pip install pyBA63

Via git cloning

git clone https://github.com/Ousret/pyBA63.git
cd pyBA63/
python setup.py install

Usage

# How to initialise device
from ba63 import BA63
from ba63.constant import SEQUENCE_CHARSET_FR
from time import sleep

my_device = BA63.get()

if my_device is None:
    print('BA63 USB display was not found.')
    exit(1)

# Set charset to FR
my_device.charset(SEQUENCE_CHARSET_FR)

# Write hello world on line 1
my_device.imprimer(1, 'Hello World')

sleep(1)

# Clear display
my_device.nettoyer()

# Write hello world on line 2
my_device.imprimer(2, 'Hello World')

sleep(1)

my_device.nettoyer()

# Close the device
my_device.fermer()