jkransen / framboos

Pure Java (Scala) implementation for accessing low-level GPIO on Raspberry Pi, BeagleBoard etc
Apache License 2.0
91 stars 20 forks source link

Update to allow direct addressing of pins, and GPIO string decoding #4

Closed DougEdey closed 10 years ago

DougEdey commented 11 years ago

Constructors now take strings to allow direct addressing. I.e. InPin("1")

Using the Beagleboards naming scheme will decode to the correct GPIO Pin. So Inpin("GPIO1_23") will decode to GPIO("45");

jkransen commented 10 years ago

Thanks for the addition, seems useful as different numbering schemes are confusing.