Skip to content
/ boneIO Public

GPIO implementation for the BeagleBone black for the Nim language.

License

Notifications You must be signed in to change notification settings

xyz32/boneIO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

GPIO implementation for the BeagleBone black for the Nim language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages