unexport

Top  Previous  Next

If a GPIO pin is no longer needed unexport it.

 

Definition

result, error = raspi.unexport( 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.unexport( 24 ))

Availability

Lua only on Raspberry Pi