Hello,
I have connected 2 08m2 Picaxes via C.2 as an output pin and C.3 as an input pin and am trying to setup serial communication between Pic 1 and 2,
What i want to happen is for pic 1 to detect when an input pin is high (C.1 and C.3) and then send these values via the serout command to the second picaxe that can receive the values (using the serin command) and then make output pins C.1 or C.2 high/low depending on what input pin was high on the first picaxe (c.1 or c.3).
I have been trying to write the code but cannot figure out how to send the information that a certain pin is high on the first picaxe and then make an output on the second picaxe. What would an example of the 2 codes (using serin and serout) look like? the examples from the PICAXE manual are not very helpful.
Thanks
I have connected 2 08m2 Picaxes via C.2 as an output pin and C.3 as an input pin and am trying to setup serial communication between Pic 1 and 2,
What i want to happen is for pic 1 to detect when an input pin is high (C.1 and C.3) and then send these values via the serout command to the second picaxe that can receive the values (using the serin command) and then make output pins C.1 or C.2 high/low depending on what input pin was high on the first picaxe (c.1 or c.3).
I have been trying to write the code but cannot figure out how to send the information that a certain pin is high on the first picaxe and then make an output on the second picaxe. What would an example of the 2 codes (using serin and serout) look like? the examples from the PICAXE manual are not very helpful.
Thanks