Thicket data repository for the EEG
1{
2 "id": "https://www.tunbury.org/2019/09/20/oled-module-for-pi",
3 "title": "OLED Module for PI",
4 "link": "https://www.tunbury.org/2019/09/20/oled-module-for-pi/",
5 "updated": "2019-09-20T12:41:29",
6 "published": "2019-09-20T12:41:29",
7 "summary": "Run raspi-config and turn on the i2c interface",
8 "content": "<p>Run <code>raspi-config</code> and turn on the i2c interface</p>\n\n<p>Install the i2c tools</p>\n\n<div><div><pre><code>apt-get install i2c-tools\n</code></pre></div></div>\n\n<p>Then of your module by running <code>i2cdetect -y 1</code></p>\n\n<div><div><pre><code>root@pi2b:~ # i2cdetect -y 1\n 0 1 2 3 4 5 6 7 8 9 a b c d e f\n00: -- -- -- -- -- -- -- -- -- -- -- -- -- \n10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \n20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \n30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- -- \n40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \n50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \n60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- \n70: -- -- -- -- -- -- -- -- \n</code></pre></div></div>\n\n<p>This shows that you’ve connected up the hardware correctly!</p>\n\n<p>Install the Python modules required by the Adafruit SSD1306 module.</p>\n\n<div><div><pre><code>pt-get install -y python3-dev python3-setuptools python3-pip python3-pil python3-rpi.gpio\n</code></pre></div></div>\n\n<p>Download the library from Github</p>\n\n<div><div><pre><code>git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git\n</code></pre></div></div>\n\n<p>Install the library</p>\n\n<div><div><pre><code>sudo python3 setup.py install\n</code></pre></div></div>\n\n<p>Then run one of the examples such as <code>shapes.py</code></p>",
9 "content_type": "html",
10 "author": {
11 "name": "Mark Elvers",
12 "email": "mark.elvers@tunbury.org",
13 "uri": null
14 },
15 "categories": [
16 "raspberrypi",
17 "oled"
18 ],
19 "source": "https://www.tunbury.org/atom.xml"
20}