Search found 5 matches
- 16 Dec 2010, 09:50
- Forum: Mindstorms Hardware
- Topic: NXT : I2C communication with PCB
- Replies: 11
- Views: 15846
Re: NXT : I2C communication with PCB
if found the solution before i saw your answer ^^ My complete code based on "RXC touch sensor Mux" : #define I2Cport S4 #define I2CAddr8574 0x40 // I2C Address pour 8574 unsigned byte WriteBuf[]={I2CAddr8574,0x00}; // adresse - données unsigned byte ReadBuf[]; // Lecture PCF8574 int RdCnt...
- 14 Dec 2010, 16:56
- Forum: Mindstorms Hardware
- Topic: NXT : I2C communication with PCB
- Replies: 11
- Views: 15846
Re: NXT : I2C communication with PCB
Hi there, i m experiencing some diffuculty to optimize my program. After i have read which button is pressed i ligh a led : switch(ReadBuf[0]){ case 8 : WriteBuf[1] = 0xf7; break; case 4 : WriteBuf[1] = 0xfb; break; case 2 : WriteBuf[1] = 0xfd; break; case 1 : WriteBuf[1] = 0xfe; break; default: bre...
- 14 Dec 2010, 10:43
- Forum: Mindstorms Hardware
- Topic: NXT : I2C communication with PCB
- Replies: 11
- Views: 15846
Re: NXT : I2C communication with PCB
Woot \o/
Thanks to sparramc, i used code from ‘RCX Touch Sensor Mux’ and it work !
Now i'm gonna try to give order to my pcf8574 to light my leds. And then i'll try to use my switch to change adress =)
See you
Thanks to sparramc, i used code from ‘RCX Touch Sensor Mux’ and it work !
Now i'm gonna try to give order to my pcf8574 to light my leds. And then i'll try to use my switch to change adress =)
See you
- 10 Dec 2010, 10:55
- Forum: Mindstorms Hardware
- Topic: NXT : I2C communication with PCB
- Replies: 11
- Views: 15846
Re: NXT : I2C communication with PCB
My PCB looks like this > http://lh4.ggpht.com/_0K31UaBLvno/TQH5FDeGwKI/AAAAAAAAACE/hntIyoV4HIE/Sans%20titre.jpg Someone give me 10 cards like this one that's why i would like to use it without exchange components. You can see that it respect the drawing of matt. I think the pcb is ok, i would had so...
- 07 Dec 2010, 15:57
- Forum: Mindstorms Hardware
- Topic: NXT : I2C communication with PCB
- Replies: 11
- Views: 15846
NXT : I2C communication with PCB
Hi, i m trying to create a nxc file to communicate with a PCB with a PCF8574. On my PCB i have some buttons and leds. I want to display an information on the NXT screen and light a led when i press a button : http://lh6.ggpht.com/_0K31UaBLvno/TP5XsS9uRpI/AAAAAAAAAB0/1xIByKwvLbA/Sans%20titre.jpg My p...