ls /dev/ttyACM*
into the terminal.If for some reason /dev/ttyACM* is not created, you need to install ACM drivers on your system. The steps and modules are distribution dependent, but searching for keywords "DISTRIBUTION_NAME usb cdc acm driver" should guide you to the right direction. As an example for OpenWRT (Carambola) you need to install usb-acm module.
setPrimary(29); pinMode(29, 1)
into the terminal. This will configure the 29th pin to be digital output pin, which by default will turn on the red LED.digitalWrite(29, 1)
. This will drive 29th pin high and turn off the LED.digitalWrite(29, 0)
. This will drive 29th pin low and turn on the LED again. By entering the last two commands repeatedly you can blink the LED.If you have a serial terminal program you can follow the steps explained in windows category. Otherwise do this:
echo "setPrimary(29); pinMode(29, 1)" > /dev/ttyACM0
into the terminal 1). This will configure the 29th pin to be digital output pin, which by default will turn on the red LED.echo "digitalWrite(29, 1)" > /dev/ttyACM0
. This will drive 29th pin high and turn off the LED.echo "digitalWrite(29, 0)" > /dev/ttyACM0
. This will drive 29th pin low and turn on the LED again. By entering the last two commands repeatedly you can blink the LED.