sbcshop / USB-RTC-Software

USB RTC is an open source real time clock device that comprises MCP2221, a USB-to-UART/I2C serial converter, which enables USB connectivity, in the processes that include a USB, UART(Serial), GPIO, and I2C interfaces.
GNU General Public License v3.0
11 stars 4 forks source link
raspberry-pi usb-hid

USB-RTC

USB RTC is an open source real time clock device that comprises MCP2221, a USB-to-UART/I2C serial converter, which enables USB connectivity, in the processes that include a USB, UART(Serial), GPIO, and I2C interfaces.

Installation on Raspberry Pi

sudo pip3 install PyMCP2221A

git clone https://github.com/sbcshop/USB-RTC-Software.git

cd USB-RTC-Software/Examples

sudo python3 test.py

Installation on Windows

pip install PyMCP2221A

git clone https://github.com/sbcshop/USB-RTC-Software.git

python3 test.py or directly run test.py in any python supported IDE (like Thonny).

Functions

For Example : bus.write_byte_data(0x68, 0x00, 0x02) # set seconds and start clock , it will set second value as 02 second after executing SetTime(address) function.

Related Products

Product License

This is open source product. Kindly check LICENSE.md file for more information.

Please contact support@sb-components.co.uk for technical support.