Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 2570|Reply: 6

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

[Copy link]

1

Threads

3

Posts

17

Credits

Novice

Rank: 1

Credits
17
Post time 2017-12-4 02:28:53 | Show all posts |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.

8

Threads

608

Posts

4086

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
4086
Post time 2017-12-4 02:53:06 | Show all posts

1

Threads

3

Posts

17

Credits

Novice

Rank: 1

Credits
17
 Author| Post time 2017-12-4 06:21:42 | Show all posts
Edited by vegetablu at 2017-12-4 06:36

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

Thank you

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

8

Threads

608

Posts

4086

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
4086
Post time 2017-12-4 13:22:49 | Show all posts
I am not the author and I have no idea which system are you using.

10

Threads

219

Posts

1974

Credits

Gold member

Rank: 6Rank: 6

Credits
1974
Post time 2017-12-4 17:28:19 | Show all posts
@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| Post time 2017-12-5 02:30:17 | Show all posts
nopnop2002 replied at 2017-12-4 17:28
@vegetablu

When you use Ubuntu,you need pthread library.

I'm sorry but not work

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

10

Threads

219

Posts

1974

Credits

Gold member

Rank: 6Rank: 6

Credits
1974
Post time 2017-12-5 22:03:51 | Show all posts
-lpthread

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

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-8-22 08:44 GMT+8 , Processed in 0.029699 second(s), 23 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list