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.

Need help for MCP23017 I2C IO Expander

Featured Replies

Hello guys,

 

I'd like to use a MCP23017 IO Expander with a Banana PI, based on this tutorial. but I get stuck at the beginning :D

 

My problem is that I can't see the device. Could you help me please how to go ahead? Thanks!

root@bananapipro:~# ls /dev/i2c*
/dev/i2c-0  /dev/i2c-1

root@bananapipro:~# i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- UU -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

root@bananapipro:~# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

root@bananapipro:~# lsmod
Module                  Size  Used by
sun4i_codec            10687  3
evdev                  12164  1
snd_soc_core          129993  1 sun4i_codec
snd_pcm_dmaengine       3391  1 snd_soc_core
snd_pcm                77032  2 snd_soc_core,snd_pcm_dmaengine
snd_timer              19508  1 snd_pcm
snd                    47137  3 snd_soc_core,snd_timer,snd_pcm
soundcore                922  1 snd
sun4i_ts                4054  0
nvmem_sunxi_sid         2551  0
nvmem_core              8592  1 nvmem_sunxi_sid
sun4i_ss               16130  0
cpufreq_dt              4394  0
thermal_sys            56978  2 cpufreq_dt,sun4i_ts
bonding               102666  0
brcmfmac              179038  0
brcmutil                5597  1 brcmfmac
cfg80211              429254  1 brcmfmac
rfkill                 10736  1 cfg80211
fuse                   83217  1
realtek                 2775  0
  • Author

Oh! I accidentally swapped SDA & SDL... Now it's ok!

i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- -- 
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.