Hello

I just noticed that the fact of reading a GPIO output, made it go to 0 is this a bug where I did not understand something?
* "Print (raspi read (24))" always gives as output regardless of the state of output 0.
So scripting does not work.

local raspi = require("raspi")
raspi.export( 18 )
raspi.direction( 18, true )
raspi.read( 18 )

local pin = raspi.read( 18 )
if pin == 1 then
raspi.write( 18, 0 )
else
raspi.write( 18, 1 )
end


Then i have help please?