Help for this page

Select Code to Download


  1. or download this
    my $spi_channel = 0;
     
    ...
    
    __END__
    input value: 776, 78.49
    
  2. or download this
    my $chan = 26; # (GPIO pin 26)
    my $adc = RPi::ADC::MCP3008->new($chan);
    ...