Device::Firmata::Platform - Platform specifics
Connect to the IO port and do some basic operations to find out how to connect to the device
Receive identified message packets and convert them into their appropriate structures and parse them as required
Receive identified sysex packets and convert them into their appropriate structures and parse them as required
On device boot time we wait 3 seconds for firmware name that the target device is using. If not received the starting message, then we wait for response another 2 seconds and fire requests for version. If the response received, then we store protocol version and analog mapping and capability.
Similar to the pinMode function on the arduino
Analogous to the digitalWrite function on the arduino
Deprecation Warning: Writing to pin with mode "INPUT" is only supported for backward compatibility to switch pullup on and off. Use sub pin_mode with $mode=PIN_PULLUP instead.
Analogous to the digitalRead function on the arduino
Fetches the analog value of a pin
pmw_write is an alias for analog_write
Call this function every once in a while to check up on the status of the comm port, receive and process data from the arduino
To install Device::Firmata, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::Firmata
CPAN shell
perl -MCPAN -e shell install Device::Firmata
For more information on module installation, please visit the detailed CPAN module installation guide.