semvec/pypi-packages huggingface dataset:
pyrpiic 1.4.0
Python RPI interface to low-level ICs
License: MIT
Requires Python: >=3.7,<4.0

# PyRPIIC

![./icon.png](./icon.png)

A [Py]thon 3 addon for [R]aspberry [Pi] that enables [i]nterfacing w/ a variety of low-level board [IC]s.

![PyPI](https://img.shields.io/pypi/v/pyrpiic)

## Compatibility

- Raspberry Pi Models: A, B (revisions 1.0 and 2.0), A+, B+, 2, 3, 3+, 3 A+, 4, Compute Module 3, Zero.
- Python 3.7+

## Install

Install the latest from PyPi:

`pip install pyrpiic`

## Modules

### Clocks

- LMK612
- SI570

### EEPROMs

- Generic
- M24C02

### I2C-GPIO Expanders

- TCA6416A

### Sensors

- LDC1412
- LDC1414
- LDC1612
- LDC1614

## Examples

### Clocks (Programmable Oscillators)

```python

from pyrpio.i2c import I2C
from pyrpiic.clock.lmk61e2 import LMK61E2

# Create and open I2C-3 bus
i2c3 = I2C('/dev/i2c-3')
i2c3.open()

# Create clock
clock = LMK61E2(i2c3, 0x5A)

# Perform various clock operations
clock.set_frequency(156_250_000)
freq, regs = clock.get_frequency()
clock.regs2freq(regs)
clock.set_registers(regs)

# Close I2C-3 bus
i2c3.close()
```

### I2C-GPIO Expander Example

```python

from pyrpio.i2c import I2C
from pyrpiic.ioexpander.tca6416a import TCA6416A

# Create and open I2C-3 bus
i2c3 = I2C('/dev/i2c-3')
i2c3.open()

# Create gpio expander
gpio_exp = TCA6416A(i2c3, 0x21)

# Set GPIO P00 as output pulled high
gpio_exp.set_gpio_direction('P00', 'OUT')
gpio_exp.set_gpio_output('P00', high=True)

# Set GPIO P01 as input w/ flipped polarity and read value
gpio_exp.set_gpio_direction('P01', 'IN')
gpio_exp.set_gpio_polarity('P01', flipped=True)
gpio_exp.get_gpio_input('P01')

# Close I2C-3 bus
i2c3.close()
```
StreamDeck-Client 0.0.3a0
Use any device which can run python as a streamdeck like a Raspberry Pi
License: MIT

<img src="https://raw.githubusercontent.com/philliphqs/StreamDeck/main/Project/ICON_with_TEXT_compressed.png" alt="ICON_with_TEXT" width="670" height="120">

> Use any device which can run python as a streamdeck like a Raspberry Pi

An nice alternative for the Elgato StreamDeck if you want to save some money

![](https://media.discordapp.net/attachments/761721971129843712/874049796338483290/unknown.png?width=782&height=440)


## Installation

  1. Download [``StreamDeck-Server-Setup.exe``](https://github.com/philliphqs/)
  5. Take your StreamDeck device and download Python 3.9 
  6. Download [``StreamDeck.zip``](https://github.com/philliphqs/)
  7. Extract ``StreamDeck.zip``
  8. Open Terminal and type ```python -m pip install dearpygui, requests```
  9. Type ```python StreamDeck-Client.py```


## Clone Repository

```sh
git clone https://github.com/philliphqs/StreamDeck.git
```

## Release History

* 0.0.1-alpha
    * Prototype

## Coming features

* 0.0.2-alpha
    * StreamDeck-Server
        * System Tray
        * Setup file
* 0.0.5-alpha
    * Support for phone/tablets
* 0.1.0-alpha
    * Customization of Buttons

## Meta

philliphqs â€“ [@phillip_hqs](https://twitter.com/philliphqs) â€“ [philliphqs@protonmail.com](mailto:philliphqs@protonmail.com)

Distributed under the MIT license. See ``LICENSE`` for more information.

[https://github.com/philliphqs/](https://github.com/philliphqs/)

## Contributing

1. Fork it (<https://github.com/philliphqs/StreamDeck/fork>)
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request