RPi::WiringPi::Constant - Constant variables for RPi::WiringPi
# THIS DISTRIBUTION IS DEPRECATED. PLEASE SEE THE "DESCRIPTION" SECTION use RPi::WiringPi::Constant (:all); # or... use RPi::WiringPi::Constant (:pinmode); # etc
THIS DISTRIBUTION/MODULE IS DEPRECATED. It'll continue to install and work, but it will not be updated or maintained further.
PLEASE USE RPi::Const FOR ANY PROJECTS MOVING FORWARD. If current projects break due to the use of this distribution, please switch over to RPi::Const.
This module optionally exports selections or all constant variables used within the RPi::WiringPi suite.
RPi::WiringPi
These are the individual grouping of export tags. The :all tag includes all of the below.
:all
Setup modes. This is what determines which pin numbering scheme you're using. See wiringPi setup modes for details.
RPI_MODE_WPI => 0, # wiringPi scheme RPI_MODE_GPIO => 1, # GPIO scheme RPI_MODE_GPIO_SYS => 2, # GPIO scheme in SYS mode RPI_MODE_PHYS => 3, # physical pin layout scheme RPI_MODE_UNINIT => -1, # setup not yet run
Pin modes.
INPUT => 0, OUTPUT => 1, PWM_OUT => 2, GPIO_CLOCK => 3, SOFT_PWM_OUTPUT => 4, # reserved SOFT_TONE_OUTPUT => 5, # reserved PWM_TONE_OUTPUT => 6, # reserved
Pin ALT modes.
ALT0 => 4, ALT1 => 5, ALT2 => 6, ALT3 => 7, ALT4 => 3, ALT5 => 2,
Internal pin pull up/down resistor state.
PUD_OFF => 0, PUD_DOWN => 1, PUD_UP => 2,
HIGH => 1, LOW => 0, ON => 1, OFF => 0,
The modes the PWM can be set to.
PWM_MODE_MS => 0, PWM_MODE_BAL => 1,
Edge detection states for interrupts.
EDGE_SETUP => 0, # reserved EDGE_FALLING => 1, EDGE_RISING => 2, EDGE_BOTH => 3,
Steve Bertrand, <steveb@cpan.org>
Copyright (C) 2016 by Steve Bertrand
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.18.2 or, at your option, any later version of Perl 5 you may have available.
To install RPi::WiringPi::Constant, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RPi::WiringPi::Constant
CPAN shell
perl -MCPAN -e shell install RPi::WiringPi::Constant
For more information on module installation, please visit the detailed CPAN module installation guide.