Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Solved in later thread] 16X2 lcd I2C

Featured Replies

I am currently using 16x2 LCD with arduino, so I guess, it should be almost the same. find the 2 wire I2C pins on OPi, I guess you could adapt your RPi program for the OPi one pins (if not the same ones, maybe it is a compatible header?)

  • Author

I tried using same procedure i do for raspberry

 

sudo nano /etc/modprobe.d/raspi-blacklist.conf - Adding (needed on Orangepi?)

blacklist spi-bcm2708

#blacklist i2c-bcm2708

 

sudo nano /etc/modules

snd-bcm2835

i2c-dev

 

sudo apt-get install i2c-tools

sudo apt-get install python-smbus

sudo adduser pi i2c (no such group created on Orange)

Reboot

 

Edit /boot/config.txt and add the text

dtparam=i2c1=on

dtparam=i2c_arm=on

LCD PI

wget https://bitbucket.org/MattHawkinsUK/rpispy-misc/raw/master/python/lcd_i2c.py

 

 And run the script

 

Failed

  • Author

I am not such expert. so any support will be welcomed

I do not see i2c package  loaded at all lsmod

The above script gives error

  • Author

I can see the iec device on 0x27

But running python script gets this result

 

Traceback (most recent call last):
  File "lcd_i2c.py", line 135, in <module>
    lcd_byte(0x01, LCD_CMD)
  File "lcd_i2c.py", line 83, in lcd_byte
    bus.write_byte(I2C_ADDR, bits_high)
IOError: [Errno 70] Communication error on send
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.