From: Chris S. <chr...@gm...> - 2006-03-20 19:27:56
|
Dave thanks. That was it. Chris On 3/19/06, Dave Hylands <dhy...@gm...> wrote: > Hi Chris, > > > The following snippet runs without error, but doesn't change the pin. > > Any clues? > > > > Chris > > > > #define PORTG (0x65 ) // _SFR_MEM8(0x65) // mem > > #define DRIVE_PIN 0x0 > > #define DRIVE_ON 0x0 > > #define DRIVE_OFF 0x1 > > > > for (i =3D 0; i < count; i++) { > > SetPin(PORTG, DRIVE_PIN, DRIVE_OFF); > > sleep(1); > > SetPin(PORTG, DRIVE_PIN, DRIVE_ON); > > } > > Sorry about the confusion. The port that's passed to I2C_IO_SetGPIO > and I2C_IO_SetGPIODir is a number between 0 and 7, where 0 =3D PORTA ... > and 7 =3D PORTG. > > I see I added a note in robostix/Shared/i2c-io.h (which documents the > data actually passed over i2c), but I don't have any similar comments > in i2c-io-api.c > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge > that extends applications into web and mobile media. Attend the live webc= ast > and join the prime developer group breaking into this new coding territor= y! > http://sel.as-us.falkag.net/sel?cmdlnk&kid=110944&bid$1720&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |