
JDoggyDrums (Customer) asked a question.
So, after conceptualizing a machine and writing code for the machine in Arduino IDE for the UNO, what would be the best way to convert this over to use on the P1AM-100? I'm sure there will be many changes. Is there a good resource for the C++ commands and code specifics to the p1AM-100? As of now, all of the inputs/outputs and an HMI are running off of one UNO successfully, but of course I will have a few I/O cards and a GPIO card for the P1AM. It was a challenge to learn to code in C++ for the first time from scratch but there are a lot of resources specific to the arduino platform, so any help or info for converting to the P1am are much appreciated. Thanks!!
Without seeing your code, I can't give the most thorough advice. In general, since they are both Arduino based boards, the code should work identically between the two unless you're doing something AVR specific. Aside from that, the only changes you'd likely need are changing your IO read/write commands from the Arduino instructions to P1AM. Using the channelLabels feature in the P1AM library will make this easier. A couple snippets below.
Arduino code(from Button example)
Same code but using P1 IO functions and channelLabels