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.

Problem with smbus on NanoPi

Featured Replies

Hello,

 

i was trying to connect sensors via i2c, and neither wiringPi.h nor i2c-dev.h are comiting Read/Write comands.
The file descriptor is given a value, so i think the connection worked, but functions like : i2c_smbus_read_byte_data(FILEDESCRIPTOR, (u_int8_t)REGISTERADRESS) just pop errors.
Do you guys have any idea?



Thanks for any help!

 

edit: 

i have also included /linux/i2c.h and the function error persists.

"I2C_SMBUS_READ_BYTE_DATA was not declared in this scope"

On 10/26/2019 at 9:04 PM, Clyde R. Schrank said:

Do you guys have any idea?

 

I can only assure you that I2C works. If you enable it in the armbian-config -> hardware.

I use it. But software you are trying to use (wiringpi) has nothing to do with Armbian. But I read around people use it on Armbian so its possible, but perhaps you need to adjust some things ...

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.