Skip to content

mcci-usb/model2450lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

model2450lib

This is a Python library to control MCCI Model2450 Brightness And Color Kit.

Install Python3.7 (64-bit) package

install python package from python.org

Install pip package

pip --version
python -m pip install --upgrade pip

Prerequisites for running or building

On Windows:

Development environment

  • OS - Windows 10 and 11 64 bit
  • Python - 3.7.8
  • pyserial - 3.5
pip install pyserial

Installing Python Packages with Setup.py

  1. Clone the repository from github

  2. Open a terminal window and change directory to {path_to_repository}/model2450lib. using cd into the root directory where setup.py is located

  3. To install the library in your local Python

setup, enter the command

python setup.py install

Please navigate to dist/ directory and you will find the files .egg file. Example: model2450lib-1.0.0-py3.7.egg

How to use the package

Create a Python file and import the class library from package:

from model2450lib import searchmodel
from model2450lib import model2450
import time

Listed out the Model2450

dev_list = searchmodel.get_models()

Open comport

Replace 'COM3' with the appropriate COM port for Model2450

sw1 = model2450.Model2450('COM3')

Connect the USB Model

sw1.connect()

cmd for Read color

sw1.get_color()

cmd for Read level

sw1.get_level()

cmd Read

sw1.get_read()

cmd for sn (serial number)

sw1.read_sn()

cmd for get Version

sw1.get_version()

Release History

  • v1.0.1 update examples
  • v1.0.0 initial release

About

Model 2450 Brightness and Color Kit Control APIs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages