[Newbie] Try to connect a MCP23017


#1

So , I am a absolute newbie in coding Axoloti and want to connect a MCP23017. I have tried the setup on a arduino and that works like charm. Now I want to play the same patch on a Axoloti. Just a simple blink-sketch.

I took some code from another patch in which a MCP23s17 is used and ported it to i2c.

Included the patch. When I upload the patch, it builds without error and uploads. After a while I get:

C:\Users\keeze\Documents\axoloti\build\xpatch.bin
block uploaded @ 0x20011000 length 3532
Done uploading patch
Starting patch...
patch start taking too long, disconnecting
Disconnect request
Done starting patch

mcp23017.axp (1.9 KB)

Can someone give me a clue that I am doing wrong?

Thanks,
Kees


#2

So, replying to myself...
I was using a pointervariable and did not point it to the sram-variable..

mcp23017.axp (1.9 KB)

Works \o/