View: 15483|Reply: 8

Does the Orange Pi zero have two I2C port?

[Copy link]

2

threads

7

posts

97

credits

Registered member

Rank: 2

credits
97
Published in 2017-2-10 16:39:14 | Show all floors |Read mode
Hi
The pinout shows me there are two I2C port, TWI1 and TWI0
but I can only recive data from TWI1.

How can I make the THWI0 aviable?

Thanks

Giuseppe

0

threads

47

posts

1708

credits

Gold member

Rank: 6Rank: 6

credits
1708
Published in 2017-2-10 18:56:56 | Show all floors
look at your script.bin file (use bin2fex from sunxi tools package).

2

threads

7

posts

97

credits

Registered member

Rank: 2

credits
97
 Author| Published in 2017-2-11 20:53:54 | Show all floors
Edited by Giuseppe at 2017-2-11 20:56

Hi,
can you tell me  path for  script.bin?

Thanks

9

threads

27

posts

286

credits

Intermediate member

Rank: 3Rank: 3

credits
286
Published in 2017-2-24 15:43:59 | Show all floors
/boot/script.bin

  1. sudo bin2fex script.bin script.fex
  2. ...make your changes to script.fex...
  3. sudo fex2bin script.fex script.bin
Copy code

You don't need to name it "script.fex", and I strongly recommend making a copy of script.bin before doing anything.

2

threads

7

posts

97

credits

Registered member

Rank: 2

credits
97
 Author| Published in 2017-3-5 18:19:02 | Show all floors
Edited by Giuseppe at 2017-3-5 18:20

Thanks but....


sudo: bin2fex: command not found  


10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-3-13 22:17:57 | Show all floors

sudo apt-get install sunxi-tools

2

threads

7

posts

97

credits

Registered member

Rank: 2

credits
97
 Author| Published in 2017-3-20 22:16:42 | Show all floors
thank you so much!

   more easy than expected
now quite confused by: nano script.fex but I will study it

10

threads

218

posts

2040

credits

Gold member

Rank: 6Rank: 6

credits
2040
Published in 2017-3-23 19:13:17 | Show all floors
No one can answer that you don't exhibit your cord.

0

threads

2

posts

24

credits

Novice

Rank: 1

credits
24
Published in 2017-4-18 12:15:02 | Show all floors
Giuseppe replied at 2017-3-20 22:16
thank you so much!

   more easy than expected

Any luck I2C comms, Giuseppe?

Cheers,
huey

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list