Skip to content
Raspberry Pi GPIO access
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
cosm
device
gpio
i2c
platform
register
system
tools
.hgignore
README.md
pom.xml

README.md

#Raspberry Pi GPIO Acess

##Why

I want to be able to program my Raspberry Pi in Scala.

That includes:

  • working with the i2c bus
  • working with GPIO
  • sending data to Cosm

##Credits

I used as sources of information and inspiration:

  • Official Broadcom documentation on BCM2835 peripherals (this is the chip inside Raspberry Pi)

  • Tutorial on RPi Low-Level Peripherals

  • pi4j project

  • RPi.GPIO

  • Java i2c binding by Peter Simon epnomis@gmail.com. This was my inspiration to use JNA. Only one call (ioctl) turned out to be neccesary.

  • Adafruit Raspberry Pi Python Code for the parts from Adafruit.

  • Chris Hatton's note on GPIO port on the Raspberry Pi

  • Ilya's note on Unsafe

  • i2c-tools package (the source of python-smbus that Adafruit uses) as an example on how to use i2c-dev driver

  • i2c_bcm2708 driver

  • jpachube

You can’t perform that action at this time.