-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdune-project
More file actions
31 lines (26 loc) · 926 Bytes
/
dune-project
File metadata and controls
31 lines (26 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(lang dune 3.0)
(name gpio)
(generate_opam_files true)
(source (github mtelvers/gpio))
(license MIT)
(authors "Mark Elvers")
(maintainers "mark.elvers@tunbury.org")
(package
(name gpio)
(synopsis "Raspberry Pi GPIO, SPI, I2C, and ePaper display drivers for OCaml")
(description "
An OCaml library for Raspberry Pi hardware interfaces using ctypes:
- GPIO: Character device API (/dev/gpiochipN) with support for input/output and pull-up/down resistors
- SPI: Full SPI communication support
- I2C: I2C bus communication
- Device Drivers:
* MAX7219: LED matrix displays (daisy-chain support)
* DS3231: Real-time clock with temperature sensor
* AT24C32: 4KB EEPROM
* Waveshare ePaper: E-ink display support (2.13inch V4)
All drivers use the modern GPIO character device API and are compatible with Raspberry Pi.")
(depends
(ocaml (>= 4.08))
(dune (>= 3.0))
(ctypes (>= 0.18))
(ctypes-foreign (>= 0.18))))