I've completed a Swordfish module for the MCP23008 I/O Expander chip. This part effectively adds an 8-bit port to your microcontroller using a 2-wire I2C interface that may be shared with many other chips.
The module makes it easy to use the MCP23008 with commands similar to standard Swordfish commands while relieving the user from dealing with the I2C protocol.
You can find it here.
MCP23008 I2C 8-bit I/O Expander Swordfish Module
Moderators: David Barker, Jerry Messina
-
- Registered User
- Posts: 185
- Joined: Mon Mar 10, 2008 8:20 am
- Location: Seattle, WA USA
- Contact:
Problem
I simply copied your demo code and mcp23008 module into two seperate files, with no code changes.
When I try to compile, it stops at line 220 of the module, the error msg reads
mcp23008.bas(220):Symbol not expected.
Any ideas ?
I'm using SF v 2.2.0.4 - ICC1.1.5.5
When I try to compile, it stops at line 220 of the module, the error msg reads
mcp23008.bas(220):Symbol not expected.
Any ideas ?
I'm using SF v 2.2.0.4 - ICC1.1.5.5
Try it now Phil - Looks like the code had spaces stripped in some areas?
digital-diy.com - Hobby microcontroller projects and tutorials. Assembly, PICBasic and C examples.
Australian distributor for the Swordfish Compiler
Australian distributor for the Swordfish Compiler
-
- Registered User
- Posts: 185
- Joined: Mon Mar 10, 2008 8:20 am
- Location: Seattle, WA USA
- Contact: