Metadata-Version: 2.0
Name: asukiaaa-py-i2c-lcd
Version: 0.1.3
Summary: An i2c library to control AQM1602
Home-page: https://github.com/asukiaaa/asukiaaa_py_i2c_lcd
Author: Asuki Kono
Author-email: asukiaaa@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Keywords: i2c lcd aqm1602 raspberry
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7

asukiaaa_py_i2c_lcd
===================

An i2c driver to control lcd from raspberry pi with python.

Useage
======

Install
-------

.. code-block:: shell

   sudo apt install smbus python-pip
   sudo pip install asukiaaa_py_i2c_lcd

Activate I2C of raspberry pi
----------------------------

.. code-block:: shell

   sudo raspi-config

Interface Options -> I2C -> Yes

Connect
-------

+--------------+-----------+
| Raspberry pi | I2C Relay |
+==============+===========+
| 3.3v         | VCC       |
+--------------+-----------+
| 2 (SDA)      | SDA0      |
+--------------+-----------+
| 3 (SCL)      | SCL0      |
+--------------+-----------+
| GND          | GND       |
+--------------+-----------+

+------------+-----+
| I2C Relay  | LCD |
+============+=====+
| VCC (3.3v) | VCC |
+------------+-----+
| SDA1       | SDA |
+------------+-----+
| SCL1       | SCL |
+------------+-----+
| GND        | GND |
+------------+-----+

Run
---

Execute the following command.

.. code-block:: python

   from asukiaaa_py_i2c_lcd.core import I2cLcd, AQM1602_ADDR

   I2C_BUS_NUM = 1

   lcd = I2cLcd(I2C_BUS_NUM, AQM1602_ADDR)
   lcd.setCursor(0,0)
   lcd.write("Hello")
   lcd.setCursor(3,1)
   lcd.write("World")

References
==========

* `raspberry piでLCD（AQM1602）を使い、IPを表示する方法 <http://asukiaaa.blogspot.jp/2016/09/raspberry-pilcdaqm1602ip.html>`_
* `ストロベリー・リナックス/秋月電子のI2C液晶/OLEDほかをArduinoで使う <http://n.mtng.org/ele/arduino/i2c.html>`_


