Leonidas-from-XIV / ocaml-wiringpi

Binding to the WiringPi library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot open the module WiringPiOcaml

juanbono opened this issue · comments

Hi! thank you for the bindings!
I was trying to use it on my rapsberry pi (1) model B+ but after the installation process:

oasis setup 
ocaml setup.ml -configure
ocaml setup.ml -build
make 
make install

when i try to use the library at the repl

open WiringPiOcaml;;

it prompts me:

Error: Unbound module WiringPiOcaml

what can i do?

PS: Information about my setup
ocaml version : 4.03.0
wiring pi version: 2.36
raspberry pi details: Type: Model B+, Revision: 02

I tried that but i can't load the library if i'm not in the library's directory (~/.opam/4.03.0/lib/WiringPi).

I've added this line to my .ocamlinit file:

#use "topfind"
#require "WiringPi"

and now it works!
Thank you for your help!