Search found 4 matches

by papahabla
Sat Jun 11, 2016 4:35 am
Forum: Drivers for External Components
Topic: MCP23008 I2C Driver
Replies: 9
Views: 10049

Re: MCP23008 I2C Driver

Yikes! Yes, 1k pull-ups did the trick. I guess the Arduino code automatically pulled up the pins in the Wire.begin(). i2c = I2C(scl=Pin(5, Pin.OUT, Pin.PULL_UP), sda=Pin(4, Pin.OUT, Pin.PULL_UP), freq=400000) Thank for your help! I'll post the driver code when it's done in case it's useful to someone.
by papahabla
Fri Jun 10, 2016 2:51 pm
Forum: Drivers for External Components
Topic: MCP23008 I2C Driver
Replies: 9
Views: 10049

Re: MCP23008 I2C Driver

The scan() method seems to return all scanned addresses. >>> i2c.scan() [8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 6...
by papahabla
Wed Jun 08, 2016 5:58 pm
Forum: Drivers for External Components
Topic: MCP23008 I2C Driver
Replies: 9
Views: 10049

Re: MCP23008 I2C Driver

Thanks @deshipu, I'm sure that's getting me a lot closer to making it work. I now have the following code which I think is equivalent to the Arduino code but it still doesn't seem to work. ######################################### # Toggle MCP23008 output pins #######################################...
by papahabla
Wed Jun 08, 2016 1:29 am
Forum: Drivers for External Components
Topic: MCP23008 I2C Driver
Replies: 9
Views: 10049

MCP23008 I2C Driver

I'm trying to expand the GPIO of an Adafruit Feather HUZZAH using the MCP23008 expander. There is some Arduino code I'm using as a model and when I run the toggle example sketch, it works, so I know I have everything wired correctly. However, I can't seem to get the port expander working in micropyt...