mirror of
https://github.com/co-dan/ocaml-wiringpi/
synced 2025-12-16 05:53:51 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb03eeee58 | ||
| 1e32b9112a |
16
.gitignore
vendored
16
.gitignore
vendored
@@ -1,4 +1,12 @@
|
|||||||
/_build/
|
*.mllib
|
||||||
/_opam/
|
*.mldylib
|
||||||
.merlin
|
*.clib
|
||||||
*.install
|
META
|
||||||
|
Makefile
|
||||||
|
configure
|
||||||
|
_tags
|
||||||
|
setup.ml
|
||||||
|
setup.data
|
||||||
|
setup.log
|
||||||
|
myocamlbuild.ml
|
||||||
|
_build/
|
||||||
|
|||||||
11
Makefile
11
Makefile
@@ -1,11 +0,0 @@
|
|||||||
.PHONY: all
|
|
||||||
all:
|
|
||||||
jbuilder build --dev
|
|
||||||
|
|
||||||
.PHONY: clean
|
|
||||||
clean:
|
|
||||||
jbuilder clean
|
|
||||||
|
|
||||||
.PHONY: test
|
|
||||||
test:
|
|
||||||
jbuilder runtest --force
|
|
||||||
15
_oasis
Normal file
15
_oasis
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
OASISFormat: 0.4
|
||||||
|
Name: WiringPi
|
||||||
|
Version: 0.0.1
|
||||||
|
Synopsis: Binding to the WiringPi library for hardware access
|
||||||
|
Authors: Tobias Bora, Marek Kubica
|
||||||
|
License: LGPL-3 with OCaml linking exception
|
||||||
|
Plugins: META (0.4), DevFiles (0.4)
|
||||||
|
|
||||||
|
Library "WiringPi"
|
||||||
|
Path: src/
|
||||||
|
BuildTools: ocamlbuild
|
||||||
|
Modules: WiringPi
|
||||||
|
CSources: WiringPi_stubs.c
|
||||||
|
CCLib: -lwiringPi
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
#use "topfind"
|
|
||||||
#require "topkg-jbuilder.auto"
|
|
||||||
@@ -45,7 +45,7 @@ value ocamlwiring_pin_mode(value pin, value mode)
|
|||||||
value ocamlwiring_pull_up_dn_control(value pin, value pud)
|
value ocamlwiring_pull_up_dn_control(value pin, value pud)
|
||||||
{
|
{
|
||||||
CAMLparam2(pin, pud);
|
CAMLparam2(pin, pud);
|
||||||
pullUpDnControl(Int_val(pin), Int_val(pin));
|
pullUpDnControl(Int_val(pin), Int_val(pud));
|
||||||
CAMLreturn(Val_unit);
|
CAMLreturn(Val_unit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
(library
|
|
||||||
((name wiringpi)
|
|
||||||
(public_name wiringpi)))
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
WiringPi for OCaml, low level Raspberry Pi hardware access
|
|
||||||
WiringPi is a library that allows easy, Arduino-like access to hardware
|
|
||||||
functionality (GPIO pins mostly) of the Raspberry Pi minicomputer. That library
|
|
||||||
is written in C so what this package does is to provide a simple interface to
|
|
||||||
use the C library from OCaml. The API is unchanged (even the capitalization) to
|
|
||||||
provide an interface which is as similar as possible to the code that it is
|
|
||||||
based upon.
|
|
||||||
|
|
||||||
Please note that you need to install the WiringPi library first, as it is not
|
|
||||||
included in this package. Otherwise compilation will fail.
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
opam-version: "1.2"
|
|
||||||
maintainer: "marek@xivilization.net"
|
|
||||||
homepage: "https://github.com/Leonidas-from-XIV/ocaml-wiringpi"
|
|
||||||
license: "LGPL-3 with OCaml linking exception"
|
|
||||||
build: ["jbuilder" "build" "-p" name "-j" jobs]
|
|
||||||
depends: [
|
|
||||||
"jbuilder" {build}
|
|
||||||
]
|
|
||||||
post-messages: [
|
|
||||||
"
|
|
||||||
This package requires WiringPi development files installed.
|
|
||||||
Tentative instructions : https://gist.githubusercontent.com/Leonidas-from-XIV/a1a7315ac01f7fbee3f0/raw
|
|
||||||
"
|
|
||||||
{failure}
|
|
||||||
]
|
|
||||||
available: os = "linux"
|
|
||||||
Reference in New Issue
Block a user