Just been having a route about the forum and the picaxe website in the FAQ section and just wondered what fellow forumers (if that's a word) thoughts are on adding I/O.
There are the following options from what I can see:-
1. Use a bigger picaxe chip (probably the easiest thing to do)
2. MCP23017 I2C I/O expander
3. MCP23S17 SPI I/O expander
4. Using a second picaxe chip.
The last one, using a second picaxe I find quite interesting but from the looks of the example code given you can ether have the extra chip as an output or an input expansion and not a combination of the two.
Extra Outputs
Extra Inputs
With all of these expansion options other than just using a larger picaxe how would you use these in a program as it doesn't look as simple as you cant just go "High C.1" to turn an output on and say "if pinB.1 then" for looking at an input?
There are the following options from what I can see:-
1. Use a bigger picaxe chip (probably the easiest thing to do)
2. MCP23017 I2C I/O expander
3. MCP23S17 SPI I/O expander
4. Using a second picaxe chip.
The last one, using a second picaxe I find quite interesting but from the looks of the example code given you can ether have the extra chip as an output or an input expansion and not a combination of the two.
Extra Outputs
Code:
let dirsb = $FF
main: serin C.0, N2400, b1
let pinsb = b1
goto main
Code:
; Input reading PICAXE
main: b1 = pinsC
serout B.7, N2400, (b1)
pause 10
goto main