semvec/pypi-packages huggingface dataset:
cbms 1.2.0
CBMS Studio API
License: MIT
Keywords: bacnet raspberry development

CBMS Api to the Sedona Virtual Machine
=======================

The CBMS API provides read/write capability from Python to the products from `CBMS Studio<http://www.cbmsstudio.com>`_'s `.

The CBMS products can be used as a gateway between a Python application and BACnet or Modbus systems.
For example, a Python program can be written to read/write from KNX and used to expose the values as BACnet objects.

----

The CBMS Studio Server runs on Windows, Linux, Raspberry PI and Blackberry and it exposes a 
REST web service for updating the IO values. These IO values can be exposed as BACnet or Modbus points
or they can be used within a Sedona Wiresheet for control and monitoring.

The CBMS API connects to the REST web service by sending HTTP Post messages to the server for
updating the IO values. The API provides an easy to user interface for sending the HTTP requests on to
the CBMS Server.
iarm 0.1.0
An interpreter for the ARM instruction set and an accompanying Jupyter kernel
License: MIT

IArm
====

IArm is an ARM interpreter for the ARMv6 THUMB instruction set (More
specifically for the ARM Cortex M0+ CPU). It supports almost 100% of the
instructions, and some assembler directives. There is also its
`Jupyter <http://jupyter.org/>`__ kernel counterpart so it can be used
with Jupyter notebooks. Check out the ``/docs`` folder to see a
technical overview and some example notebooks.

Install
-------

Install with pip

::

    pip install iarm

Or clone the repo and install with setuptools

::

    python setup.py install

To install the Jupyer kernel counterpart, after installation, run

::

    python -m iarm_kernel.install

Usage
-----

Python
~~~~~~

Import the ``arm`` module and instantiate an interpreter from the
``Arm`` class

::

    import iarm.arm
    interp = iarm.arm.Arm()

To run code, pass the code into the ``evaluate`` method. Multiple lines
can be sent in as well as one line at a time.

::

    interp.evaluate(" MOVS R0, #5")
    interp.evaluate("""
        MOVS R1, #3
        ADDS R2, R0, R1
    """)

By default, code is not run. The ``run`` method must be called.

::

    interp.run()
    print(interp.register)  # Print out the status of all the registers

Jupyter
~~~~~~~

Simply activate the iarm\_kernel module and make a new notebook as an
``IArm`` notebook. Most of the magics have a 1 to 1 to the module. Refer
to the notebooks in the ``/docs/examples`` folder and the ``%help``
magic.
CsCntlr 0.1.0
A python package for the color sensor S11059-02DT
License: MIT
Keywords: Color-sensor S11059-02DT Raspberry-Pi

CsCntlr (Color-sensor Controller)
=================================

A python package for the color sensor S11059-02DT.

Installation
============

::

    pip install CsCntlr

Getting Started
===============

::

    # First, create a CsCntlr instance
    from CsCntlr import *
    cs = CsCntlr()

    # Then, select the mode to be used
    cs.useFixedPeriodMode()
    cs.useManualSettingMode()

    # You can measure colors by using the code below
    cs.cntlr.auto()

Examples for Fixed Period Mode
==============================

::

    from CsCntlr import *
    cs = CsCntlr()
    cs.useFixedPeriodMode()

    # You can specify the gain and the integration time (tint)
    cs.cntlr.auto(gain='low', tint=2)

    # gain should be 'low' or 'high' (low:high = 1:10)
    cs.cntlr.auto(gain='lolo')
    cs.cntlr.auto(gain='hi')

    # tint should be from 0 to 3 
    # 3: 179.2 ms, 2: 22.4 ms, 1: 1.4 ms, 0: 0.0875 ms (per color)
    cs.cntlr.auto(tint=100)
    cs.cntlr.auto(tint='hi')

Examples for Manual Setting Mode
================================

In this mode, the sensor goes to standby mode after the measurement.

::

    from CsCntlr import *
    cs = CsCntlr()
    cs.useManualSettingMode()

    # You can specify the manual integration time (man_tint)
    cs.cntlr.auto(gain='high', man_tint=100, tint=0)
    cs.cntlr.auto(man_tint=1)

    # gain should be 'low' or 'high' (low:high = 1:10)
    cs.cntlr.auto(gain='lolo')
    cs.cntlr.auto(gain='hi')

    # tint should be from 0 to 3
    # 3: 358.4 ms, 2: 44.8 ms, 1: 2.8 ms, 0: 0.175 ms (per color)
    cs.cntlr.auto(tint=100)
    cs.cntlr.auto(tint='hi')

    # man_tint should be from 0 to 65535
    # measurement_time = tint * man_tint (per color)
    cs.cntlr.auto(gain='high', man_tint=70000, tint=1)
    cs.cntlr.auto(man_tint='hi')

Note: CsCntlr is Singleton
==========================

::

    from CsCntlr import *
    cs = CsCntlr()
    cs.useManualSettingMode()

    cs1 = CsCntlr()
    cs1.useFixedPeriodMode()

    # now, cs is changed to the Fixed Period Mode
    print(cs.cntlr_mode)
    # Fixed Period Mode