@gerritv: Marius specifically made it clear in his last post that he has not looked at the Mega port, it is
not his code.
udpioMega.py:
#!/usr/bin/python
#udpioMEGA.py
# HAL userspace component to interface with Arduino board
# Copyright (C) 2015 Marius Liebenberg <marius@bluearccnc.com>
# Mods to use Mega2560 Robi Akerley-mcKee <kf6pqz@gmail.com>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
udpioMEGA.ino:
void decodeRx(char* rxbuffer, int buflen)
{
if(rxbuffer[0] == 'D') {
STEPPORT = atoi(rxbuffer[STEPPORTDATA]);
DIRPORT = atoi(rxbuffer[DIRPORTDATA]);
XTRPORT = atoi(rxbuffer[XTRPORTDATA]);
for(int i=0; i< PWMCOUNT; i++) {
analogWrite(pwmpinmap
,atoi(rxbuffer[PWMDATA + i]));
}
return;
STDLib.h :
extern int atoi(const char *__s) __ATTR_PURE__;
ERROR: char * cannot be translated into atoi (const char * ....)
forum.arduino.cc/index.php?topic=474206.0
I hope I was clear?
Best regards!