Converting Audrino C code to Parallax Issues..
james.t
Posts: 8
in Accessories
I'm trying to convert the audrino c code example for Rfid read/write, but am having some issues in the conversion. This is what I have..
the issue I am trying to solve is: serial_open
I'm not sure how to calll the function:
Can someone give me a hand..
Thanks ahead of time..
the issue I am trying to solve is: serial_open
I'm not sure how to calll the function:
Can someone give me a hand..
Thanks ahead of time..
c
10K
Comments
It looks like you are trying to use the Parallax RFID Read/Write module (#28440) on the Propeller in C.
I noticed that the Arduino code you translating was a translation of BS2 code and someone placed a Spin translation in OBEX but the only C code appears to be for the Arduino or just the Reader.
One of the C gurus should be able to help you out.
The code will build as an RFID demo program that you can use as a basis for your project...
Here's the top file of the librfidser project, which when built as non-library creates a test harness for the RFID module (#28440):
dgately
You can do this in Blockly or switch to the "code view" and see the resultant C code.
Ken Gracey
I convert the code as close as possible to the original code but there is some bad coding in there to start with which I was not going to fix and I don't have that device to test that the changes I made actually work.
I switched to fdserial as it has functions close to what is need by Arduino.
While I have converted serval devices from Arduino over to Propeller I generally start over and write from scratch.
Mike