Changes between Version 58 and Version 59 of PiBotOsInstallation
- Timestamp:
- Oct 14, 2016, 10:44:08 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PiBotOsInstallation
v58 v59 21 21 sudo apt-get upgrade 22 22 }}} 23 * Install some useful packages: 24 {{{ 25 sudo apt-get install i2c-tools 26 i2cdetect -y 1 27 }}} 23 28 * Install Oracle Java JDK. Do not use stock OpenJDK, its slower. 24 29 {{{ … … 26 31 }}} 27 32 * Then test, by running {{{java -version}}}. It should say java 8, not openjdk. 33 34 To access the I/O capabilities of the Pi (and the PiBot hat), you must install additional libraries; either Oracle's Device I/O (DIO) or Pi4J (which uses WiringPi) or both. You can read about them [https://dzone.com/refcardz/iot-applications-with-java-and-raspberry-pi here]. Tutorials are [http://www.slideshare.net/javafxpert/raspberry-pi-with-java-8 here] and [https://blogs.oracle.com/javatraining/entry/using_device_i_o_with here] 35 28 36 * Install [http://pi4j.com/ Pi4J] 29 37 {{{ … … 32 40 }}} 33 41 * Test installation by checking version: {{{pi4j -v}}} 34 * Install Oracle [https://gautric.github.io/blog/2016/03/09/rhiot-Device-IO-API-i2cdetect-impl.html Device I/O] (DIO) library 42 * Install Oracle [https://gautric.github.io/blog/2016/03/09/rhiot-Device-IO-API-i2cdetect-impl.html Device I/O] (DIO) library. 43 See usage [http://www.oracle.com/technetwork/articles/java/cruz-gpio-2295970.html here] and [http://www.oracle.com/technetwork/articles/java/cruz-gpio-2295970.html 35 44 {{{ 36 45 sudo apt-get install mercurial … … 41 50 make 42 51 }}} 52 * Test Device I/O following [https://gautric.github.io/blog/2016/03/09/rhiot-Device-IO-API-i2cdetect-impl.html these directions] 43 53 44 54 * Install [https://www.nano-editor.org/ Nano] text editor {{{sudo apt-get install nano}}}