export

Top  Previous  Next

To be able to use the GPIO pins you must first export them.

 

Definition

result, error = raspi.export( pin )

 

Name

Type

Description

pin

number

The pin number to export

result

nil or true

Returns true if success or nil + error on error.

error

nil or string

The error string if applicable.

 

Example

print(raspi.export( 24 ))

Availability

Lua only on Raspberry Pi