I have a questions about the code , i can start working with arduino, but i have a problem i need to stranlate this PIC code for Arduino
what would be the command that replaces hserout in arduino?. I need to send strings different values ??chains serial port. In this case for labels
CICLO: ADCIN CAN_0, VAR_A 'Leer Canal 0, guardar lectura en 'VAR_A
ENT = (VAR_A * 5) / 255 'Calcular valor entero
RES = (VAR_A * 5)//255 'Calcular residuo codificado
DECI = (RES * 100) / 255 'Calcular valor decimal
hserout ["<l n=",34,"FIE",34,">",10,13,"<s n=",34,"Lab_A",34," V=",34,#ENT,".",#DECI,34,"/>",10,13,"<s n=",34,"Lab_B",34," V=",34,#ENT,".",#DECI,34,"/>",10,13, "<s n=",34,"Lab_C",34," V=",34,#ENT,".",#DECI,34,"/>","", 10,13]
PAUSE 3000
'*****************************************************************
GoTo CICLO 'Ir a CICLO para realizar de modo indefinido
'la lectura del potenciómetro
'*****************************************************************
End 'Fin del Programa