Is there any program to control motor?

I want to use GPIO in Raspberry Pi to control motor. Is there any program in webOS???? like arduino program or AVR program.

Not sure it supports GPIO interface as other OS for raspberry pi. But on the other hands, you may be able to access GPIO with mmap.
see although it is about beaglebone black, but I don't think there is a difference between bbb and rpi3.

I haven't tried it (i don't have a Pi), but there is a nodejs library for Pi GPIO access, so you should be able to write something as a node-service for it.

There is a thread regarding that here:

If we have webos service to control GPIO, it's awesome :slight_smile: Not support it at this time.