ailable
403 GPIO # Disabled
404 [something] Not Found
=head2 BASIC
=head3 GET /map
Returns a JSON list, with each entry corresponding to a pin on the physical
header. Each entry can be:
=over
7, 18, 27, "GND", 22, 23, "V33", 24, 10, "GND", 9, 25, 11, 8, "GND", 7]
=head3 GET /*
Returns a JSON of available interfaces. Keys:
=over 4
=item * UART [bool]
=item * SPI [bool]
=item * I2C [b
return '';
};
get '/map' => sub {
return to_json( $webio->pin_desc( $default_name ) );
};
get qr{\A / \* }x => sub {
return to_json( $webio->all_desc( $default_name ) );
};
get '/' =>
s point, you should be able to startup Apache. Calling
C<http://example.com/*> should get you a JSON dump of the pins. Calling
C<http://example.com/app/app/gpio-header/index.html> should get you a