lib/ffi/wiring_pi/gpio.rb in ffi-wiring_pi-1.0.2 vs lib/ffi/wiring_pi/gpio.rb in ffi-wiring_pi-1.0.3
- old
+ new
@@ -19,10 +19,10 @@
PUD_UP = 2
PWM_MODE_MS = 0
PWM_MODE_BAL = 1
-
+ ffi_lib_flags :now, :global
ffi_lib 'wiringPi'
attach_function :setup, :wiringPiSetup, [], :int
attach_function :setup_as_gpio, :wiringPiSetupGpio, [], :int
attach_function :setup_as_physical, :wiringPiSetupPhys, [], :int