No description
Find a file
2017-05-22 11:24:12 -04:00
examples Fix ioctl import. 2015-11-22 13:53:34 -05:00
src Update to the latest nimble requirements. 2017-05-22 11:24:12 -04:00
.gitignore Update to the latest nimble requirements. 2017-05-22 11:24:12 -04:00
boneIO.kdev4 Update to the latest nimble requirements. 2017-05-22 11:24:12 -04:00
boneIO.nimble Update to the latest nimble requirements. 2017-05-22 11:24:12 -04:00
license.txt Create a module to handle capes. Update version to nim 11.3. 2015-08-22 20:30:41 -04:00
nim.cfg Comment cross compile settings 2015-06-23 19:25:36 -04:00
README.md Update readme. 2016-10-25 09:36:59 -04:00

BeagleBone GPIO for Nim

GPIO implementation for the BeagleBone black for the Nim language. The implementation is using the sysfs to "talk" to the hardware.

License

The library is licensed under the MIT license.

Install

The library is part of the nimble repository. Use it as you would use any other library.

If you want to install it yourself: cd into the root of the project and run:

nimble install

Useing it with nimble

See Install

In your PROJECT.nimble file add:

[Deps]
Requires: "..., boneGPIO, ..."

Cross compiling

For arm cross compiling download the linaro tool chain. Edit the nim.cfg file and point all the compiles specific paths to the arm toolchain. For example:

arm.linux.gcc.path = "/home/xyz/apps/gcc-linaro/bin"
arm.linux.gcc.exe = "arm-linux-gnueabihf-gcc"
arm.linux.gcc.linkerexe = "arm-linux-gnueabihf-gcc"

Run the nimble build command (or nimble install to get a release optimized build).

TODO

Left to be done:

  • GPIO
  • PWM
  • Servos (needs some testing)
  • ADC
  • I2C
  • UART
  • eQEP enhanced Quadrature-Encoder Pulse
  • PRU Support. (After 1.0)
  • Implement ASYNC version of the library. (After 1.0)