[How to do instruction] 2 times i2c oled display - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9) +--- Thread: [How to do instruction] 2 times i2c oled display (/showthread.php?tid=3462) |
2 times i2c oled display - DRONE7 - 02-06-2021 This is prompted from a request here... http://moodeaudio.org/forum/showthread.php?tid=818&pid=29933#pid29933 Two oled displays...different i2c address by changing the solder bridge on one....Google that for a how-to. Use them paralleled and with the Pi 5-volt dropped to their required 3.3-volt with a cheap Ams1117. https://www.ebay.co.uk/itm/AMS1117-LDO-DC-5V-to-3-3V-Step-Down-Buck-Converter-Regulator-800mA-Module/333781070289?hash=item4db6e6f1d1:g:tksAAOSwsaxfppOP Set up the first oled as per Adrian's superb MoOde instructions... https://github.com/antiprism/mpd_oled/blob/master/doc/install_moode7_deb.md Use the default un-modified i2c address (probably 3c) for the mpd.oled file Code: mpd_oled -o 6 -a 3c -b 10 -g 1 -f 20 and once you have that confirmed running and a second oled (with the bridge) now showing it as 3d connected then install this version (stats.py) (from the original here, modified for MoOde... David-Ka / Pi_stats_OLED) Instruction... Connect to your Pi via SSH (Most of the dependencies are already present in MoOde 7.01 and will say that you have the most up to date version already but no problem to try and check) --- Install some dependencies for the library Code: sudo apt-get install build-essential python-dev python-pip Code: sudo pip install RPi.GPIO Code: sudo apt-get install python-pil python-smbus Code: sudo apt-get install git Code: git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git Code: cd Adafruit_Python_SSD1306 and execute ... Code: sudo python setup.py install Connect to your Pi via SSH Clone this repository. Code: git clone https://github.com/David-Ka/Pi_stats_OLED check the i2c address of your oleds (the un-modified would be usually default 3c and the modified 3d (Booting and checking with only one at a time oled connected would give the information needed.) example of both i2c oleds connected.. Code: pi@moode:~ $ sudo i2cdetect -y 1 then.. Code: cd Pi_stats_OLED and run.. Code: sudo nano stats.py Code: # 128x64 display with hardware I2C: save and reboot. Connect to your Pi via SSH then.. Code: cd Pi_stats_OLED Code: sudo python stats.py If all is well and both displays work then to add the second oled to run at boot.. Code: cd Pi_stats_OLED Code: chmod 755 launcher.sh Code: sudo nano /etc/rc.local and add this line just before 'exit 0' Code: /home/pi/Pi_stats_OLED/launcher.sh & RE: 2 times i2c oled display - KmPan - 02-06-2021 THANK YOU@DRONE7 Looking forward for more mods like this with moode. RE: 2 times i2c oled display - the_bertrum - 02-08-2021 Is that "her majesty" I see in the background? RE: 2 times i2c oled display - TheOldPresbyope - 02-08-2021 (02-08-2021, 04:05 PM)the_bertrum Wrote: Is that "her majesty" I see in the background? She's a pretty nice girl! RE: 2 times i2c oled display - DRONE7 - 02-08-2021 I'm stunned and amazed that such a partial fuzzy glimpse of Liz is recognised by the_bertrum.... yes, quite correct...she was possibly even waving ;-) RE: 2 times i2c oled display - the_bertrum - 02-09-2021 Something about the way she was holding her bag... |