please choosego to mobile | Continue to access the PC version
View: 13497|Reply: 6

How install GPIO and How use IMU (gyroscope, accelerometer)

[Copy link]

1

threads

3

posts

17

credits

Novice

Rank: 1

credits
17
Published in 2017-12-4 02:28:53 | Show all floors |Read mode
Hello all.
I'm Daniele, and I have a Orange Pi Pc.
I had installed Ubuntu Vivid Mate. I would like programming in C/C++/Java the GPIO port, but I have many problems and I ask to you help.

In python GPIO work. In C, there are the errors.
When I installed the Wiring Pi I had have problems.

I would like reinstall all from the begining.
My finally use is: connect IMU (gyroscope,accelerometer) with OPI.
Can you help me? Thank you.

9

threads

634

posts

4398

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4398
Published in 2017-12-4 02:53:06 | Show all floors

1

threads

3

posts

17

credits

Novice

Rank: 1

credits
17
 Author| Published in 2017-12-4 06:21:42 | Show all floors
Edited by vegetablu at 2017-12-4 06:36

I attach a screenshot of my errors.
How can I resolve this?

Thank you

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

9

threads

634

posts

4398

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4398
Published in 2017-12-4 13:22:49 | Show all floors
I am not the author and I have no idea which system are you using.

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-12-4 17:28:19 | Show all floors
@vegetablu

When you use Ubuntu,you need pthread library.
cc main.c armbianio.c -lpthread

When you use Debian,you don't need pthread library.
cc main.c armbianio.c

1

threads

3

posts

17

credits

Novice

Rank: 1

credits
17
 Author| Published in 2017-12-5 02:30:17 | Show all floors
nopnop2002 replied at 2017-12-4 17:28
@vegetablu

When you use Ubuntu,you need pthread library.

I'm sorry but not work

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-12-5 22:03:51 | Show all floors
-lpthread

First chracter is "Small L" Not I
  
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list