├── chp05 ├── syscall │ ├── test.txt │ ├── build │ └── glibcTest ├── overview │ ├── helloworldc │ ├── short.c │ ├── short.cpp │ ├── void │ ├── cstrings │ ├── operators │ ├── passing │ ├── pointers │ ├── pointers2 │ ├── shortcpp │ ├── cppstrings │ ├── helloworldcpp │ ├── pointerarray │ ├── short_static │ ├── sizeofvariables │ ├── helloworld.c │ ├── short2.cpp │ ├── helloworld.cpp │ ├── void.c │ ├── pointerarray.c │ ├── pointers2.c │ ├── pointers.c │ ├── build │ └── operators.c ├── makeLEDmulti │ ├── offLED │ ├── onLED │ ├── closeLED │ ├── setupLED │ ├── statusLED │ └── makeLEDmulti ├── pythonLED │ └── pythonLED ├── environment │ ├── build │ └── environment ├── proc │ ├── who │ ├── build │ ├── readUptime │ └── whologgedin.c ├── cython │ ├── test.so │ ├── test.py │ ├── test.pyx │ └── setup.py ├── cython_exe │ ├── test │ └── build ├── makeLED │ ├── makeLED │ ├── makeLEDC │ └── build ├── performance │ ├── n-body │ ├── n-body.c │ ├── n-body2 │ ├── n-bodypi │ ├── nbody.hi │ ├── Body.class │ ├── n-body.pl │ ├── nbody.class │ ├── nbodyp.hi │ ├── nbody_csharp │ ├── cython │ │ ├── nbody.so │ │ ├── nbody_cython │ │ ├── backup │ │ │ └── nbody_cython │ │ └── setup.py │ ├── NBodySystem.class │ ├── cython_opt │ │ ├── nbody.so │ │ ├── nbody_cython │ │ ├── backup │ │ │ └── nbody_cython │ │ └── setup.py │ └── build ├── boostPython │ ├── erpi.so │ ├── build │ └── test.py ├── makeLEDOOP │ ├── makeLEDs │ └── build ├── python2_C │ ├── ERPiModule.so │ ├── build │ └── test.py ├── python3_C │ ├── ERPiModule.so │ ├── build │ └── test.py └── javaLED │ ├── exploringRPi │ └── LEDExample.class │ └── build ├── chp09 ├── spiADC ├── bcm2835 │ ├── build │ ├── adc │ ├── plot.pdf │ ├── plot_20000_100Hz.pdf │ ├── plot_20000_25Hz.pdf │ ├── plot_2000_200Hz.pdf │ ├── plot_2000_500Hz.pdf │ └── plot ├── spiDAC │ ├── bcm2835 │ │ ├── build │ │ └── dac │ ├── DACTest │ └── build ├── i2cDAC │ ├── dactest │ ├── signaltest │ └── build ├── ldr │ ├── ldrExample │ └── build ├── gnuplot │ ├── sinx.pdf │ └── sinx.png ├── pwmDriver │ ├── pwmtest │ ├── servotest │ └── build ├── gpioExpander │ ├── display │ ├── example │ ├── testI2C │ ├── testSPI │ ├── testing │ │ ├── test │ │ └── build │ ├── multi_spi_testing │ │ ├── test │ │ ├── testOOPmulti │ │ └── build │ └── build ├── spiADC_MCP3008 │ ├── ADCmulti │ ├── plot.pdf │ ├── ADCExample │ ├── ADCmulti2 │ └── build └── spiADC_MCP3208 │ ├── ADCmulti │ ├── build │ ├── plot.pdf │ ├── results │ ├── plot_100Hz.pdf │ ├── plot_250Hz.pdf │ ├── plot_2kHz.pdf │ ├── plot_5kHz.pdf │ ├── plot_1kHz_error.pdf │ ├── plot_2kHz_clean.pdf │ ├── plot_500Hz_clean.pdf │ └── plot_500Hz_error.pdf │ └── plot ├── chp11 ├── cli │ ├── Makefile │ └── .lib │ │ └── arduino.a ├── i2c │ ├── temp │ │ ├── build │ │ └── i2c │ └── i2cTMP36warn │ │ └── i2cTMP36 ├── spi │ ├── spi │ └── spi.c └── uart │ ├── echoC │ └── echo │ └── command │ └── command ├── chp12 ├── paho │ ├── node_modules │ │ ├── .bin │ │ │ ├── mqtt │ │ │ ├── mqtt_pub │ │ │ └── mqtt_sub │ │ └── mqtt │ │ │ ├── node_modules │ │ │ ├── help-me │ │ │ │ ├── doc │ │ │ │ │ ├── help.txt │ │ │ │ │ └── hello.txt │ │ │ │ ├── fixture │ │ │ │ │ └── basic │ │ │ │ │ │ ├── hello │ │ │ │ │ │ ├── help.txt │ │ │ │ │ │ └── hello.txt │ │ │ │ ├── node_modules │ │ │ │ │ └── pump │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ └── .travis.yml │ │ │ │ └── example.js │ │ │ ├── xtend │ │ │ │ ├── .npmignore │ │ │ │ ├── Makefile │ │ │ │ └── mutable.js │ │ │ ├── end-of-stream │ │ │ │ └── .npmignore │ │ │ ├── commist │ │ │ │ └── node_modules │ │ │ │ │ └── .bin │ │ │ │ │ └── leven │ │ │ ├── mqtt-packet │ │ │ │ ├── node_modules │ │ │ │ │ └── bl │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ └── test │ │ │ │ │ │ └── test.js │ │ │ │ ├── mqtt.js │ │ │ │ ├── packet.js │ │ │ │ └── .travis.yml │ │ │ ├── websocket-stream │ │ │ │ ├── .npmignore │ │ │ │ ├── node_modules │ │ │ │ │ ├── duplexify │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ ├── readable-stream │ │ │ │ │ │ │ │ ├── .zuul.yml │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ │ ├── string_decoder │ │ │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ │ │ ├── core-util-is │ │ │ │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ │ │ ├── process-nextick-args │ │ │ │ │ │ │ │ │ │ └── .travis.yml │ │ │ │ │ │ │ │ │ ├── isarray │ │ │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ │ │ │ └── util-deprecate │ │ │ │ │ │ │ │ │ │ └── node.js │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ ├── duplex.js │ │ │ │ │ │ │ │ ├── transform.js │ │ │ │ │ │ │ │ ├── writable.js │ │ │ │ │ │ │ │ └── passthrough.js │ │ │ │ │ │ │ └── end-of-stream │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ └── .travis.yml │ │ │ │ │ ├── through2 │ │ │ │ │ │ └── .npmignore │ │ │ │ │ └── ws │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── ultron │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ └── options │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ └── lib │ │ │ │ │ │ ├── Validation.fallback.js │ │ │ │ │ │ ├── BufferUtil.js │ │ │ │ │ │ └── Validation.js │ │ │ │ ├── test-server.js │ │ │ │ └── index.js │ │ │ ├── concat-stream │ │ │ │ └── node_modules │ │ │ │ │ ├── readable-stream │ │ │ │ │ ├── .zuul.yml │ │ │ │ │ ├── node_modules │ │ │ │ │ │ ├── string_decoder │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ ├── core-util-is │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ ├── process-nextick-args │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ ├── isarray │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ └── util-deprecate │ │ │ │ │ │ │ └── node.js │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── duplex.js │ │ │ │ │ ├── transform.js │ │ │ │ │ ├── writable.js │ │ │ │ │ └── passthrough.js │ │ │ │ │ └── typedarray │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── example │ │ │ │ │ └── tarray.js │ │ │ │ │ └── test │ │ │ │ │ └── tarray.js │ │ │ ├── inherits │ │ │ │ └── inherits.js │ │ │ ├── readable-stream │ │ │ │ ├── node_modules │ │ │ │ │ ├── string_decoder │ │ │ │ │ │ └── .npmignore │ │ │ │ │ ├── core-util-is │ │ │ │ │ │ └── README.md │ │ │ │ │ └── isarray │ │ │ │ │ │ └── index.js │ │ │ │ ├── .npmignore │ │ │ │ ├── duplex.js │ │ │ │ ├── writable.js │ │ │ │ ├── passthrough.js │ │ │ │ └── transform.js │ │ │ ├── mqtt-connection │ │ │ │ ├── node_modules │ │ │ │ │ ├── through2 │ │ │ │ │ │ └── .npmignore │ │ │ │ │ └── reduplexer │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ └── .npmignore │ │ │ │ └── .travis.yml │ │ │ └── minimist │ │ │ │ ├── example │ │ │ │ └── parse.js │ │ │ │ ├── .travis.yml │ │ │ │ └── test │ │ │ │ ├── whitespace.js │ │ │ │ └── parse_modified.js │ │ │ ├── test │ │ │ ├── mocha.opts │ │ │ ├── browser │ │ │ │ └── ports.js │ │ │ ├── store.js │ │ │ └── helpers │ │ │ │ └── server_process.js │ │ │ ├── MQTT.js.png │ │ │ ├── .npmignore │ │ │ ├── examples │ │ │ └── client │ │ │ │ ├── simple-publish.js │ │ │ │ ├── simple-subscribe.js │ │ │ │ └── simple-both.js │ │ │ ├── .zuul.yml │ │ │ ├── .travis.yml │ │ │ ├── example.js │ │ │ └── doc │ │ │ └── help.txt │ ├── paho │ ├── subscribe │ └── build ├── watchdog │ ├── build │ └── watchdog ├── dht │ ├── build │ └── dht ├── webbrowser │ ├── build │ └── webbrowser ├── cgicc │ └── led.cgi ├── webbrowserSSL │ ├── build │ └── webbrowserSSL ├── cppMail │ └── cppMail ├── thingSpeak │ ├── build │ └── thingSpeak ├── thermal │ ├── plot.pdf │ ├── record_temp.sh │ └── plot ├── clientserver │ ├── client │ ├── server │ └── build ├── cgi-bin │ ├── temperature.cgi │ └── test.cgi └── express │ └── hello.js ├── chp08 ├── uart │ ├── uartC │ │ ├── build │ │ ├── uart │ │ └── uartRPi3 │ ├── gps │ │ ├── build │ │ └── gps_test │ └── server │ │ ├── build │ │ └── server ├── spi │ ├── spi595Example │ │ ├── build │ │ └── spi595 │ ├── spiADXL345 │ │ ├── build │ │ ├── 3-wire │ │ │ ├── build │ │ │ └── spiADXL345 │ │ └── spiADXL345 │ ├── spidev_test │ │ ├── build │ │ └── spidev_test │ ├── spiADXL345_bus2 │ │ ├── build │ │ └── spiADXL345 │ ├── wiringPi │ │ ├── ADXL345 │ │ └── build │ └── spiADXL345_cpp │ │ ├── SPITest │ │ ├── testADXL345 │ │ └── build └── i2c │ ├── cpp │ ├── build │ └── ADXL345 │ ├── test │ ├── ADXL345 │ ├── testDS3231 │ ├── testADXL345C │ ├── testADXL345Cpp │ └── build │ ├── wiringPi │ ├── rtc │ ├── build │ └── DS3231.c │ └── systemd │ └── erpi_hwclock.service ├── chp13 ├── nfc │ ├── build │ └── nfc_test ├── json │ ├── build │ ├── data.json │ ├── test │ └── libjsoncpp.a ├── xbee │ ├── nodejs │ │ └── node_modules │ │ │ ├── xbee-api │ │ │ ├── .npmignore │ │ │ ├── node_modules │ │ │ │ └── buffer-reader │ │ │ │ │ ├── .npmignore │ │ │ │ │ └── .travis.yml │ │ │ ├── examples │ │ │ │ └── chrome-tool │ │ │ │ │ ├── node_modules │ │ │ │ │ └── xbee-api │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ └── .jshintrc │ │ │ │ │ ├── icon_128.png │ │ │ │ │ ├── icon_16.png │ │ │ │ │ ├── assets │ │ │ │ │ └── screen01.png │ │ │ │ │ ├── fonts │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ └── glyphicons-halflings-regular.woff │ │ │ │ │ └── launch.js │ │ │ ├── doc │ │ │ │ ├── 90000976_W.pdf │ │ │ │ └── 90000982_S.pdf │ │ │ ├── .travis.yml │ │ │ └── .jshintrc │ │ │ ├── .bin │ │ │ ├── serialportlist │ │ │ └── serialportterm │ │ │ └── serialport │ │ │ ├── build │ │ │ ├── Release │ │ │ │ ├── obj.target │ │ │ │ │ ├── action_after_build.stamp │ │ │ │ │ └── serialport.node │ │ │ │ ├── serialport.node │ │ │ │ └── .deps │ │ │ │ │ └── Release │ │ │ │ │ ├── obj.target │ │ │ │ │ ├── action_after_build.stamp.d │ │ │ │ │ └── serialport.node.d │ │ │ │ │ └── serialport.node.d │ │ │ ├── binding.Makefile │ │ │ └── serialport │ │ │ │ └── v2.0.2 │ │ │ │ └── Release │ │ │ │ └── node-v46-linux-arm │ │ │ │ └── serialport.node │ │ │ ├── node_modules │ │ │ ├── sf │ │ │ │ ├── .npmignore │ │ │ │ └── .travis.yml │ │ │ ├── node-pre-gyp │ │ │ │ ├── node_modules │ │ │ │ │ ├── .bin │ │ │ │ │ │ ├── rc │ │ │ │ │ │ ├── rimraf │ │ │ │ │ │ ├── mkdirp │ │ │ │ │ │ ├── nopt │ │ │ │ │ │ └── semver │ │ │ │ │ ├── nopt │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ └── abbrev │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ └── CONTRIBUTING.md │ │ │ │ │ │ └── .travis.yml │ │ │ │ │ ├── request │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ ├── extend │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ ├── bl │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ │ └── readable-stream │ │ │ │ │ │ │ │ │ │ ├── .zuul.yml │ │ │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ │ │ ├── string_decoder │ │ │ │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ │ │ │ ├── inherits │ │ │ │ │ │ │ │ │ │ │ └── inherits.js │ │ │ │ │ │ │ │ │ │ ├── core-util-is │ │ │ │ │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ │ │ │ ├── process-nextick-args │ │ │ │ │ │ │ │ │ │ │ └── .travis.yml │ │ │ │ │ │ │ │ │ │ ├── isarray │ │ │ │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ │ │ │ │ └── util-deprecate │ │ │ │ │ │ │ │ │ │ │ └── node.js │ │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ │ ├── duplex.js │ │ │ │ │ │ │ │ │ │ ├── writable.js │ │ │ │ │ │ │ │ │ │ ├── transform.js │ │ │ │ │ │ │ │ │ │ └── passthrough.js │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ │ └── test.js │ │ │ │ │ │ │ ├── qs │ │ │ │ │ │ │ │ ├── .eslintignore │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ ├── isstream │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ └── .travis.yml │ │ │ │ │ │ │ ├── json-stringify-safe │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ │ └── mocha.opts │ │ │ │ │ │ │ ├── hawk │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ │ ├── hoek │ │ │ │ │ │ │ │ │ │ ├── test │ │ │ │ │ │ │ │ │ │ │ └── modules │ │ │ │ │ │ │ │ │ │ │ │ ├── ignore.txt │ │ │ │ │ │ │ │ │ │ │ │ ├── test1.js │ │ │ │ │ │ │ │ │ │ │ │ ├── test2.js │ │ │ │ │ │ │ │ │ │ │ │ └── test3.js │ │ │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ │ │ │ │ │ │ ├── images │ │ │ │ │ │ │ │ │ │ │ └── hoek.png │ │ │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ │ │ ├── sntp │ │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ │ │ ├── boom │ │ │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ │ │ │ │ │ │ ├── images │ │ │ │ │ │ │ │ │ │ │ └── boom.png │ │ │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ │ │ └── cryptiles │ │ │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ ├── images │ │ │ │ │ │ │ │ │ ├── hawk.png │ │ │ │ │ │ │ │ │ └── logo.png │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ ├── form-data │ │ │ │ │ │ │ │ └── lib │ │ │ │ │ │ │ │ │ └── browser.js │ │ │ │ │ │ │ ├── node-uuid │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ ├── http-signature │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ │ ├── ctype │ │ │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ │ │ └── asn1 │ │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ │ └── lib │ │ │ │ │ │ │ │ │ │ └── ber │ │ │ │ │ │ │ │ │ │ └── errors.js │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ └── .dir-locals.el │ │ │ │ │ │ │ ├── combined-stream │ │ │ │ │ │ │ │ └── node_modules │ │ │ │ │ │ │ │ │ └── delayed-stream │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ │ ├── stringstream │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ └── LICENSE.txt │ │ │ │ │ │ │ ├── har-validator │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ │ ├── is-my-json-valid │ │ │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ │ │ │ ├── xtend │ │ │ │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ │ │ │ └── Makefile │ │ │ │ │ │ │ │ │ │ │ ├── generate-function │ │ │ │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ │ │ │ └── .travis.yml │ │ │ │ │ │ │ │ │ │ │ ├── generate-object-property │ │ │ │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ │ │ │ │ │ └── is-property │ │ │ │ │ │ │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ │ │ │ │ │ └── test.js │ │ │ │ │ │ │ │ │ │ │ └── jsonpointer │ │ │ │ │ │ │ │ │ │ │ │ └── .travis.yml │ │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ │ └── .travis.yml │ │ │ │ │ │ │ │ │ ├── commander │ │ │ │ │ │ │ │ │ │ └── node_modules │ │ │ │ │ │ │ │ │ │ │ └── graceful-readlink │ │ │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ │ │ │ ├── pinkie-promise │ │ │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ │ │ │ └── chalk │ │ │ │ │ │ │ │ │ │ └── node_modules │ │ │ │ │ │ │ │ │ │ ├── has-ansi │ │ │ │ │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ │ │ │ │ └── node_modules │ │ │ │ │ │ │ │ │ │ │ └── ansi-regex │ │ │ │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ │ │ │ │ ├── strip-ansi │ │ │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ │ │ │ └── ansi-regex │ │ │ │ │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ │ │ │ │ └── escape-string-regexp │ │ │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ │ │ └── lib │ │ │ │ │ │ │ │ │ ├── schemas │ │ │ │ │ │ │ │ │ ├── har.json │ │ │ │ │ │ │ │ │ ├── cache.json │ │ │ │ │ │ │ │ │ ├── pageTimings.json │ │ │ │ │ │ │ │ │ ├── record.json │ │ │ │ │ │ │ │ │ └── creator.json │ │ │ │ │ │ │ │ │ └── error.js │ │ │ │ │ │ │ ├── tunnel-agent │ │ │ │ │ │ │ │ ├── .jshintrc │ │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ ├── oauth-sign │ │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ ├── aws-sign2 │ │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ ├── forever-agent │ │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ └── mime-types │ │ │ │ │ │ │ │ └── node_modules │ │ │ │ │ │ │ │ └── mime-db │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ └── .npmignore │ │ │ │ │ ├── tar-pack │ │ │ │ │ │ ├── test │ │ │ │ │ │ │ └── fixtures │ │ │ │ │ │ │ │ ├── packed-file.txt │ │ │ │ │ │ │ │ ├── to-pack │ │ │ │ │ │ │ │ ├── bar.txt │ │ │ │ │ │ │ │ └── foo.txt │ │ │ │ │ │ │ │ └── packed.tar.gz │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ ├── fstream-ignore │ │ │ │ │ │ │ │ ├── test │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ ├── .ignore │ │ │ │ │ │ │ │ │ └── zz-cleanup.js │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ └── node_modules │ │ │ │ │ │ │ │ │ ├── minimatch │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ │ │ └── lru-cache │ │ │ │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ │ │ │ └── .travis.yml │ │ │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ │ │ └── extglob-ending-with-state-char.js │ │ │ │ │ │ │ │ │ └── inherits │ │ │ │ │ │ │ │ │ └── inherits.js │ │ │ │ │ │ │ ├── fstream │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ │ ├── graceful-fs │ │ │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ │ │ └── inherits │ │ │ │ │ │ │ │ │ │ └── inherits.js │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ ├── tar │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ │ └── inherits │ │ │ │ │ │ │ │ │ │ └── inherits.js │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ ├── test │ │ │ │ │ │ │ │ │ └── fixtures.tgz │ │ │ │ │ │ │ │ └── examples │ │ │ │ │ │ │ │ │ └── packer.js │ │ │ │ │ │ │ ├── readable-stream │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ │ ├── string_decoder │ │ │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ │ │ ├── inherits │ │ │ │ │ │ │ │ │ │ └── inherits.js │ │ │ │ │ │ │ │ │ ├── core-util-is │ │ │ │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ │ │ └── isarray │ │ │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ ├── duplex.js │ │ │ │ │ │ │ │ ├── writable.js │ │ │ │ │ │ │ │ ├── transform.js │ │ │ │ │ │ │ │ └── passthrough.js │ │ │ │ │ │ │ ├── rimraf │ │ │ │ │ │ │ │ ├── test │ │ │ │ │ │ │ │ │ ├── test-sync.js │ │ │ │ │ │ │ │ │ ├── test-async.js │ │ │ │ │ │ │ │ │ └── run.sh │ │ │ │ │ │ │ │ └── AUTHORS │ │ │ │ │ │ │ └── debug │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ └── .npmignore │ │ │ │ │ ├── npmlog │ │ │ │ │ │ └── node_modules │ │ │ │ │ │ │ ├── ansi │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ └── .jshintrc │ │ │ │ │ │ │ ├── are-we-there-yet │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ └── node_modules │ │ │ │ │ │ │ │ ├── delegates │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ │ │ └── History.md │ │ │ │ │ │ │ │ └── readable-stream │ │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ │ ├── string_decoder │ │ │ │ │ │ │ │ │ └── .npmignore │ │ │ │ │ │ │ │ ├── inherits │ │ │ │ │ │ │ │ │ └── inherits.js │ │ │ │ │ │ │ │ ├── core-util-is │ │ │ │ │ │ │ │ │ └── README.md │ │ │ │ │ │ │ │ └── isarray │ │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ ├── duplex.js │ │ │ │ │ │ │ │ ├── transform.js │ │ │ │ │ │ │ │ ├── writable.js │ │ │ │ │ │ │ │ └── passthrough.js │ │ │ │ │ │ │ └── gauge │ │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ └── has-unicode │ │ │ │ │ │ │ │ └── README.md~ │ │ │ │ │ │ │ └── example.png │ │ │ │ │ ├── rc │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ ├── deep-extend │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ │ └── mocha.opts │ │ │ │ │ │ │ └── minimist │ │ │ │ │ │ │ │ ├── example │ │ │ │ │ │ │ │ └── parse.js │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ ├── whitespace.js │ │ │ │ │ │ │ │ └── parse_modified.js │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ └── browser.js │ │ │ │ │ ├── tar │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ ├── inherits │ │ │ │ │ │ │ │ └── inherits.js │ │ │ │ │ │ │ └── fstream │ │ │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ │ │ └── .travis.yml │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ └── test │ │ │ │ │ │ │ ├── fixtures.tgz │ │ │ │ │ │ │ └── cb-never-called-1.0.1.tgz │ │ │ │ │ ├── semver │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ └── .travis.yml │ │ │ │ │ ├── mkdirp │ │ │ │ │ │ ├── node_modules │ │ │ │ │ │ │ └── minimist │ │ │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ │ │ ├── example │ │ │ │ │ │ │ │ └── parse.js │ │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ │ ├── whitespace.js │ │ │ │ │ │ │ │ └── parse_modified.js │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ └── examples │ │ │ │ │ │ │ └── pow.js │ │ │ │ │ └── rimraf │ │ │ │ │ │ └── node_modules │ │ │ │ │ │ └── glob │ │ │ │ │ │ └── node_modules │ │ │ │ │ │ ├── inherits │ │ │ │ │ │ └── inherits.js │ │ │ │ │ │ └── minimatch │ │ │ │ │ │ └── node_modules │ │ │ │ │ │ └── brace-expansion │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ └── node_modules │ │ │ │ │ │ ├── balanced-match │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ └── example.js │ │ │ │ │ │ └── concat-map │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ └── example │ │ │ │ │ │ └── map.js │ │ │ │ └── lib │ │ │ │ │ ├── util │ │ │ │ │ └── nw-pre-gyp │ │ │ │ │ │ └── package.json │ │ │ │ │ ├── reinstall.js │ │ │ │ │ └── rebuild.js │ │ │ ├── .bin │ │ │ │ └── node-pre-gyp │ │ │ ├── debug │ │ │ │ ├── .jshintrc │ │ │ │ ├── .npmignore │ │ │ │ └── node_modules │ │ │ │ │ └── ms │ │ │ │ │ └── .npmignore │ │ │ ├── async │ │ │ │ ├── .travis.yml │ │ │ │ └── component.json │ │ │ ├── nan │ │ │ │ └── include_dirs.js │ │ │ └── optimist │ │ │ │ ├── .travis.yml │ │ │ │ ├── example │ │ │ │ ├── reflect.js │ │ │ │ ├── short.js │ │ │ │ ├── nonopt.js │ │ │ │ ├── boolean_single.js │ │ │ │ ├── default_hash.js │ │ │ │ ├── default_singles.js │ │ │ │ ├── boolean_double.js │ │ │ │ ├── divide.js │ │ │ │ ├── xup.js │ │ │ │ ├── string.js │ │ │ │ └── bool.js │ │ │ │ ├── test │ │ │ │ ├── _ │ │ │ │ │ ├── argv.js │ │ │ │ │ └── bin.js │ │ │ │ └── whitespace.js │ │ │ │ └── node_modules │ │ │ │ ├── minimist │ │ │ │ ├── .travis.yml │ │ │ │ ├── example │ │ │ │ │ └── parse.js │ │ │ │ └── test │ │ │ │ │ ├── whitespace.js │ │ │ │ │ └── parse_modified.js │ │ │ │ └── wordwrap │ │ │ │ └── example │ │ │ │ └── meat.js │ │ │ ├── .npmignore │ │ │ ├── hwtest │ │ │ └── package.json │ │ │ ├── bin │ │ │ └── serialportList.js │ │ │ └── arduinoTest │ │ │ └── arduinoEcho │ │ │ └── arduinoEcho.ino │ └── cpp │ │ ├── test │ │ ├── simple │ │ ├── conTypes │ │ ├── contypes │ │ └── identify ├── jsonNodeMCU │ ├── build │ ├── jsonNodeMCU │ └── libjsoncpp.a ├── Android │ └── ERPi_Bluetooth_Chat.apk └── nodemcu │ └── luatool │ ├── main.lua │ └── init.lua ├── chp06 ├── dht │ ├── build │ └── dht ├── memoryGPIO │ ├── build │ └── ledflash ├── GPIO │ ├── build │ ├── simple │ └── tests │ │ ├── test_syspoll │ │ ├── test_callback │ │ ├── test_gpiokeys │ │ └── build ├── bits │ └── bits ├── wiringPi │ ├── info │ ├── pwm │ ├── clock │ ├── servo │ ├── buttonLED │ ├── fadeLED │ ├── buttonLEDdb │ └── fasttoggle ├── multicore │ ├── test │ ├── perftest │ ├── perftest_boost │ └── build ├── GPIOpython │ ├── gpio.so │ ├── simple │ ├── tests │ │ ├── test_callback │ │ ├── test_gpiokeys │ │ ├── test_syspoll │ │ └── build │ └── build ├── callback │ └── callback ├── pthreads │ ├── counters │ ├── threads │ └── build ├── minimal_clk │ └── minimal_clk └── python │ └── ledflash.py ├── chp07 ├── test ├── testrpi.cpp └── test.cpp ├── chp10 ├── adxl335 │ ├── data │ ├── adxl335 │ └── build ├── oled │ ├── dht │ ├── input │ ├── oledTest │ └── build ├── drv8835 │ ├── motor │ └── build ├── makefiles │ ├── build │ ├── Makefile │ ├── hello.cpp │ └── test.cpp ├── sharp │ ├── sharp │ ├── sharpfit │ ├── fitting.pdf │ ├── fitting1.pdf │ ├── fitting2.pdf │ ├── fittings.pdf │ ├── data │ └── build ├── simple │ └── motor ├── tmp36 │ ├── build │ └── tmp36 ├── max7219 │ ├── build │ └── max7219 ├── stepper │ ├── stepper │ └── build ├── character │ ├── character │ └── build ├── cmake │ ├── CMakeLists.txt │ └── hello.cpp └── makefiles2 │ ├── hello.cpp │ ├── test.cpp │ └── Makefile ├── chp15 ├── boost │ ├── test │ └── test.cpp ├── openCV │ ├── face │ ├── filter │ ├── timing │ ├── Lenna.png │ ├── capture.png │ ├── edges.png │ ├── grayscale.png │ ├── faceOutput.png │ └── build ├── v4l2 │ ├── capture │ ├── grabber │ ├── raw2mpg4 │ ├── streamVideoUDP_RPi │ └── build ├── audio │ ├── bell.mp3 │ ├── laugh.mp3 │ ├── cheering.wav │ ├── track26.mp3 │ ├── track33.mp3 │ ├── 320sample.mp3 │ └── readme └── fswebcam │ ├── exploringRPi.png │ ├── fswebcam.conf │ └── fswebcamrpi.conf ├── chp16 ├── LED │ ├── led.ko │ └── Makefile ├── hello │ ├── hello.ko │ └── Makefile ├── button │ ├── button.ko │ └── Makefile └── gpio │ ├── gpio_test.ko │ └── Makefile ├── chp03 ├── helloRPiSleep ├── dts │ ├── bcm2709-rpi-2-b.dtb │ └── skeleton.dtsi └── HelloRPiSleep.c ├── chp14 ├── gtk │ ├── gtkhello │ ├── gtksensor │ └── build ├── simpleQt │ ├── simpleQt │ ├── simpleQt.cpp │ └── simpleQt.pro ├── QtWeatherServer │ ├── server │ ├── clientTest │ └── build ├── threadedClientServer │ ├── client │ ├── server │ └── build ├── QtWeather │ ├── build-QtWeather-Desktop-Debug │ │ └── QtWeather │ └── QtWeather │ │ └── main.cpp └── QtWeatherClient │ └── main.cpp └── library ├── build ├── libExploringRPi.a └── libExploringRPi.so └── docs └── build /chp05/syscall/test.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chp05/overview/helloworldc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chp09/spiADC: -------------------------------------------------------------------------------- 1 | spiADC_MCP3208/ -------------------------------------------------------------------------------- /chp11/cli/Makefile: -------------------------------------------------------------------------------- 1 | arduino.mk -------------------------------------------------------------------------------- /chp05/makeLEDmulti/offLED: -------------------------------------------------------------------------------- 1 | makeLEDmulti -------------------------------------------------------------------------------- /chp05/makeLEDmulti/onLED: -------------------------------------------------------------------------------- 1 | makeLEDmulti -------------------------------------------------------------------------------- /chp05/overview/short.c: -------------------------------------------------------------------------------- 1 | main(){} 2 | -------------------------------------------------------------------------------- /chp05/overview/short.cpp: -------------------------------------------------------------------------------- 1 | main(){} 2 | -------------------------------------------------------------------------------- /chp05/pythonLED/pythonLED: -------------------------------------------------------------------------------- 1 | python3LED.py -------------------------------------------------------------------------------- /chp05/makeLEDmulti/closeLED: -------------------------------------------------------------------------------- 1 | makeLEDmulti -------------------------------------------------------------------------------- /chp05/makeLEDmulti/setupLED: -------------------------------------------------------------------------------- 1 | makeLEDmulti -------------------------------------------------------------------------------- /chp05/makeLEDmulti/statusLED: -------------------------------------------------------------------------------- 1 | makeLEDmulti -------------------------------------------------------------------------------- /chp12/paho/node_modules/.bin/mqtt: -------------------------------------------------------------------------------- 1 | ../mqtt/mqtt.js -------------------------------------------------------------------------------- /chp12/paho/node_modules/.bin/mqtt_pub: -------------------------------------------------------------------------------- 1 | ../mqtt/bin/pub.js -------------------------------------------------------------------------------- /chp12/paho/node_modules/.bin/mqtt_sub: -------------------------------------------------------------------------------- 1 | ../mqtt/bin/sub.js -------------------------------------------------------------------------------- /chp08/uart/uartC/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gcc uart.c -o uart 3 | -------------------------------------------------------------------------------- /chp12/watchdog/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gcc watchdog.c -o watchdog 3 | -------------------------------------------------------------------------------- /chp13/nfc/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gcc nfc_test.c -o nfc_test -lnfc 3 | -------------------------------------------------------------------------------- /chp05/syscall/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ glibcTest.cpp -o glibcTest 3 | -------------------------------------------------------------------------------- /chp06/dht/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ dht.cpp -o dht -lwiringPi 3 | 4 | -------------------------------------------------------------------------------- /chp06/memoryGPIO/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gcc LEDflash.c -o ledflash 3 | -------------------------------------------------------------------------------- /chp08/spi/spi595Example/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gcc spi595.c -o spi595 3 | -------------------------------------------------------------------------------- /chp12/dht/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ dht.cpp -o dht -lwiringPi 3 | 4 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/help-me/doc/help.txt: -------------------------------------------------------------------------------- 1 | aaaaa 2 | -------------------------------------------------------------------------------- /chp12/webbrowser/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gcc webbrowser.c -o webbrowser 3 | -------------------------------------------------------------------------------- /chp05/environment/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ environment.cpp -o environment 3 | -------------------------------------------------------------------------------- /chp08/uart/gps/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gcc gps_test.c -o gps_test -lgps -lm 3 | -------------------------------------------------------------------------------- /chp08/uart/server/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gcc server.c -o server -lwiringPi 3 | -------------------------------------------------------------------------------- /chp09/bcm2835/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | g++ adc_bcm2835.cpp -o adc -lbcm2835 3 | -------------------------------------------------------------------------------- /chp11/i2c/temp/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ i2c_bcm2835.cpp -o i2c -lbcm2835 3 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/xtend/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /chp13/json/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ json_test.cpp libjsoncpp.a -o test 3 | -------------------------------------------------------------------------------- /chp07/test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp07/test -------------------------------------------------------------------------------- /chp08/spi/spiADXL345/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gcc spiADXL345.c -o spiADXL345 3 | 4 | -------------------------------------------------------------------------------- /chp08/spi/spidev_test/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gcc spidev_test.c -o spidev_test 3 | -------------------------------------------------------------------------------- /chp09/spiDAC/bcm2835/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | g++ dac_bcm2835.cpp -o dac -lbcm2835 3 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/end-of-stream/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/help-me/fixture/basic/hello: -------------------------------------------------------------------------------- 1 | ghghghhg 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/xbee-api/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | *.swp 3 | -------------------------------------------------------------------------------- /chp05/proc/who: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/proc/who -------------------------------------------------------------------------------- /chp06/GPIO/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ simple.cpp GPIO.cpp -o simple -pthread 3 | 4 | -------------------------------------------------------------------------------- /chp06/dht/dht: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/dht/dht -------------------------------------------------------------------------------- /chp08/spi/spiADXL345_bus2/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gcc spiADXL345.c -o spiADXL345 3 | 4 | -------------------------------------------------------------------------------- /chp10/adxl335/data: -------------------------------------------------------------------------------- 1 | # Simple calibration data 2 | 568 0 3 | 2272 90 4 | 3973 180 5 | -------------------------------------------------------------------------------- /chp10/oled/dht: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp10/oled/dht -------------------------------------------------------------------------------- /chp11/spi/spi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp11/spi/spi -------------------------------------------------------------------------------- /chp12/dht/dht: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp12/dht/dht -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/commist/node_modules/.bin/leven: -------------------------------------------------------------------------------- 1 | ../leven/cli.js -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/help-me/doc/hello.txt: -------------------------------------------------------------------------------- 1 | this is hello world 2 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/help-me/fixture/basic/help.txt: -------------------------------------------------------------------------------- 1 | hello world 2 | -------------------------------------------------------------------------------- /chp13/json/data.json: -------------------------------------------------------------------------------- 1 | { 2 | "temperature" : 28.5, 3 | "button" : true 4 | } 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/.bin/serialportlist: -------------------------------------------------------------------------------- 1 | ../serialport/bin/serialportList.js -------------------------------------------------------------------------------- /chp06/bits/bits: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/bits/bits -------------------------------------------------------------------------------- /chp08/spi/spiADXL345/3-wire/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gcc spiADXL345.c -o spiADXL345 3 | 4 | -------------------------------------------------------------------------------- /chp10/oled/input: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp10/oled/input -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/help-me/fixture/basic/hello.txt: -------------------------------------------------------------------------------- 1 | ahdsadhdash 2 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/mqtt-packet/node_modules/bl/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/test/mocha.opts: -------------------------------------------------------------------------------- 1 | --growl 2 | --check-leaks 3 | --timeout 5000 4 | -------------------------------------------------------------------------------- /chp12/paho/paho: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp12/paho/paho -------------------------------------------------------------------------------- /chp13/json/test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/json/test -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/.bin/serialportterm: -------------------------------------------------------------------------------- 1 | ../serialport/bin/serialportTerminal.js -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/build/Release/obj.target/action_after_build.stamp: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chp15/boost/test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/boost/test -------------------------------------------------------------------------------- /chp16/LED/led.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp16/LED/led.ko -------------------------------------------------------------------------------- /chp03/helloRPiSleep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp03/helloRPiSleep -------------------------------------------------------------------------------- /chp05/overview/void: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/overview/void -------------------------------------------------------------------------------- /chp05/proc/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ readUptime.cpp -o readUptime 3 | gcc whologgedin.c -o who 4 | -------------------------------------------------------------------------------- /chp06/GPIO/simple: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/GPIO/simple -------------------------------------------------------------------------------- /chp06/wiringPi/info: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/wiringPi/info -------------------------------------------------------------------------------- /chp06/wiringPi/pwm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/wiringPi/pwm -------------------------------------------------------------------------------- /chp08/i2c/cpp/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ application.cpp I2CDevice.cpp ADXL345.cpp -o ADXL345 3 | -------------------------------------------------------------------------------- /chp09/bcm2835/adc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/bcm2835/adc -------------------------------------------------------------------------------- /chp10/drv8835/motor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp10/drv8835/motor -------------------------------------------------------------------------------- /chp10/makefiles/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ -o3 hello.cpp -o hello 3 | g++ -o3 test.cpp -o test 4 | -------------------------------------------------------------------------------- /chp10/oled/oledTest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp10/oled/oledTest -------------------------------------------------------------------------------- /chp10/sharp/sharp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp10/sharp/sharp -------------------------------------------------------------------------------- /chp10/simple/motor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp10/simple/motor -------------------------------------------------------------------------------- /chp10/tmp36/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ -o tmp36 tmp36.cpp bus/SPIDevice.cpp bus/BusDevice.cpp 3 | -------------------------------------------------------------------------------- /chp10/tmp36/tmp36: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp10/tmp36/tmp36 -------------------------------------------------------------------------------- /chp11/i2c/temp/i2c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp11/i2c/temp/i2c -------------------------------------------------------------------------------- /chp12/cgicc/led.cgi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp12/cgicc/led.cgi -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/help-me/node_modules/pump/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store -------------------------------------------------------------------------------- /chp12/webbrowserSSL/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | gcc webbrowserSSL.c -o webbrowserSSL -lcrypto -lssl 3 | -------------------------------------------------------------------------------- /chp13/nfc/nfc_test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/nfc/nfc_test -------------------------------------------------------------------------------- /chp13/xbee/cpp/test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/cpp/test -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/sf/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | node_modules 3 | -------------------------------------------------------------------------------- /chp14/gtk/gtkhello: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp14/gtk/gtkhello -------------------------------------------------------------------------------- /chp14/gtk/gtksensor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp14/gtk/gtksensor -------------------------------------------------------------------------------- /chp15/openCV/face: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/openCV/face -------------------------------------------------------------------------------- /chp15/openCV/filter: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/openCV/filter -------------------------------------------------------------------------------- /chp15/openCV/timing: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/openCV/timing -------------------------------------------------------------------------------- /chp15/v4l2/capture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/v4l2/capture -------------------------------------------------------------------------------- /chp15/v4l2/grabber: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/v4l2/grabber -------------------------------------------------------------------------------- /chp05/cython/test.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/cython/test.so -------------------------------------------------------------------------------- /chp05/cython_exe/test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/cython_exe/test -------------------------------------------------------------------------------- /chp05/makeLED/makeLED: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/makeLED/makeLED -------------------------------------------------------------------------------- /chp05/proc/readUptime: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/proc/readUptime -------------------------------------------------------------------------------- /chp06/multicore/test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/multicore/test -------------------------------------------------------------------------------- /chp06/wiringPi/clock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/wiringPi/clock -------------------------------------------------------------------------------- /chp06/wiringPi/servo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/wiringPi/servo -------------------------------------------------------------------------------- /chp08/i2c/cpp/ADXL345: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/i2c/cpp/ADXL345 -------------------------------------------------------------------------------- /chp08/uart/uartC/uart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/uart/uartC/uart -------------------------------------------------------------------------------- /chp09/i2cDAC/dactest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/i2cDAC/dactest -------------------------------------------------------------------------------- /chp09/ldr/ldrExample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/ldr/ldrExample -------------------------------------------------------------------------------- /chp09/spiDAC/DACTest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/spiDAC/DACTest -------------------------------------------------------------------------------- /chp10/adxl335/adxl335: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp10/adxl335/adxl335 -------------------------------------------------------------------------------- /chp10/adxl335/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ -o adxl335 adxl335.cpp bus/SPIDevice.cpp bus/BusDevice.cpp 3 | -------------------------------------------------------------------------------- /chp10/max7219/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ -o max7219 max7219.cpp bus/SPIDevice.cpp bus/BusDevice.cpp 3 | -------------------------------------------------------------------------------- /chp10/max7219/max7219: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp10/max7219/max7219 -------------------------------------------------------------------------------- /chp10/sharp/sharpfit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp10/sharp/sharpfit -------------------------------------------------------------------------------- /chp10/stepper/stepper: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp10/stepper/stepper -------------------------------------------------------------------------------- /chp11/uart/echoC/echo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp11/uart/echoC/echo -------------------------------------------------------------------------------- /chp12/cppMail/cppMail: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp12/cppMail/cppMail -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/test/browser/ports.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports.port = 9371; 3 | -------------------------------------------------------------------------------- /chp12/paho/subscribe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp12/paho/subscribe -------------------------------------------------------------------------------- /chp12/thingSpeak/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ thingSpeak.cpp network/SocketClient.cpp -o thingSpeak 3 | -------------------------------------------------------------------------------- /chp13/xbee/cpp/simple: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/cpp/simple -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/.bin/rc: -------------------------------------------------------------------------------- 1 | ../rc/index.js -------------------------------------------------------------------------------- /chp15/audio/bell.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/audio/bell.mp3 -------------------------------------------------------------------------------- /chp15/audio/laugh.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/audio/laugh.mp3 -------------------------------------------------------------------------------- /chp16/hello/hello.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp16/hello/hello.ko -------------------------------------------------------------------------------- /chp05/makeLED/makeLEDC: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/makeLED/makeLEDC -------------------------------------------------------------------------------- /chp05/overview/cstrings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/overview/cstrings -------------------------------------------------------------------------------- /chp05/overview/operators: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/overview/operators -------------------------------------------------------------------------------- /chp05/overview/passing: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/overview/passing -------------------------------------------------------------------------------- /chp05/overview/pointers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/overview/pointers -------------------------------------------------------------------------------- /chp05/overview/pointers2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/overview/pointers2 -------------------------------------------------------------------------------- /chp05/overview/shortcpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/overview/shortcpp -------------------------------------------------------------------------------- /chp05/performance/n-body: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/performance/n-body -------------------------------------------------------------------------------- /chp05/performance/n-body.c: -------------------------------------------------------------------------------- 1 | #error Do not use this file, it is the result of a failed Cython compilation. 2 | -------------------------------------------------------------------------------- /chp05/syscall/glibcTest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/syscall/glibcTest -------------------------------------------------------------------------------- /chp06/GPIOpython/gpio.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/GPIOpython/gpio.so -------------------------------------------------------------------------------- /chp06/GPIOpython/simple: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/GPIOpython/simple -------------------------------------------------------------------------------- /chp06/callback/callback: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/callback/callback -------------------------------------------------------------------------------- /chp06/multicore/perftest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/multicore/perftest -------------------------------------------------------------------------------- /chp06/pthreads/counters: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/pthreads/counters -------------------------------------------------------------------------------- /chp06/pthreads/threads: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/pthreads/threads -------------------------------------------------------------------------------- /chp06/wiringPi/buttonLED: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/wiringPi/buttonLED -------------------------------------------------------------------------------- /chp06/wiringPi/fadeLED: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/wiringPi/fadeLED -------------------------------------------------------------------------------- /chp08/i2c/test/ADXL345: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/i2c/test/ADXL345 -------------------------------------------------------------------------------- /chp08/i2c/wiringPi/rtc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/i2c/wiringPi/rtc -------------------------------------------------------------------------------- /chp08/uart/gps/gps_test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/uart/gps/gps_test -------------------------------------------------------------------------------- /chp08/uart/server/server: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/uart/server/server -------------------------------------------------------------------------------- /chp09/bcm2835/plot.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/bcm2835/plot.pdf -------------------------------------------------------------------------------- /chp09/gnuplot/sinx.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/gnuplot/sinx.pdf -------------------------------------------------------------------------------- /chp09/gnuplot/sinx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/gnuplot/sinx.png -------------------------------------------------------------------------------- /chp09/i2cDAC/signaltest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/i2cDAC/signaltest -------------------------------------------------------------------------------- /chp09/ldr/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ -o ldrExample ldrExample.cpp bus/SPIDevice.cpp bus/BusDevice.cpp 3 | -------------------------------------------------------------------------------- /chp09/pwmDriver/pwmtest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/pwmDriver/pwmtest -------------------------------------------------------------------------------- /chp09/spiDAC/bcm2835/dac: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/spiDAC/bcm2835/dac -------------------------------------------------------------------------------- /chp09/spiDAC/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ -O3 -o DACTest DACTest.cpp bus/SPIDevice.cpp bus/BusDevice.cpp 3 | -------------------------------------------------------------------------------- /chp10/sharp/fitting.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp10/sharp/fitting.pdf -------------------------------------------------------------------------------- /chp10/sharp/fitting1.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp10/sharp/fitting1.pdf -------------------------------------------------------------------------------- /chp10/sharp/fitting2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp10/sharp/fitting2.pdf -------------------------------------------------------------------------------- /chp10/sharp/fittings.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp10/sharp/fittings.pdf -------------------------------------------------------------------------------- /chp11/cli/.lib/arduino.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp11/cli/.lib/arduino.a -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/concat-stream/node_modules/readable-stream/.zuul.yml: -------------------------------------------------------------------------------- 1 | ui: tape 2 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /chp12/thermal/plot.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp12/thermal/plot.pdf -------------------------------------------------------------------------------- /chp12/watchdog/watchdog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp12/watchdog/watchdog -------------------------------------------------------------------------------- /chp13/json/libjsoncpp.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/json/libjsoncpp.a -------------------------------------------------------------------------------- /chp13/xbee/cpp/conTypes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/cpp/conTypes -------------------------------------------------------------------------------- /chp13/xbee/cpp/contypes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/cpp/contypes -------------------------------------------------------------------------------- /chp13/xbee/cpp/identify: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/cpp/identify -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/.bin/node-pre-gyp: -------------------------------------------------------------------------------- 1 | ../node-pre-gyp/bin/node-pre-gyp -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/debug/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "laxbreak": true 3 | } 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/.bin/rimraf: -------------------------------------------------------------------------------- 1 | ../rimraf/bin.js -------------------------------------------------------------------------------- /chp14/simpleQt/simpleQt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp14/simpleQt/simpleQt -------------------------------------------------------------------------------- /chp15/audio/cheering.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/audio/cheering.wav -------------------------------------------------------------------------------- /chp15/audio/track26.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/audio/track26.mp3 -------------------------------------------------------------------------------- /chp15/audio/track33.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/audio/track33.mp3 -------------------------------------------------------------------------------- /chp15/openCV/Lenna.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/openCV/Lenna.png -------------------------------------------------------------------------------- /chp15/openCV/capture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/openCV/capture.png -------------------------------------------------------------------------------- /chp15/openCV/edges.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/openCV/edges.png -------------------------------------------------------------------------------- /chp16/button/button.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp16/button/button.ko -------------------------------------------------------------------------------- /chp16/gpio/gpio_test.ko: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp16/gpio/gpio_test.ko -------------------------------------------------------------------------------- /chp05/boostPython/erpi.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/boostPython/erpi.so -------------------------------------------------------------------------------- /chp05/makeLEDOOP/makeLEDs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/makeLEDOOP/makeLEDs -------------------------------------------------------------------------------- /chp05/overview/cppstrings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/overview/cppstrings -------------------------------------------------------------------------------- /chp05/performance/n-body2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/performance/n-body2 -------------------------------------------------------------------------------- /chp05/performance/n-bodypi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/performance/n-bodypi -------------------------------------------------------------------------------- /chp05/performance/nbody.hi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/performance/nbody.hi -------------------------------------------------------------------------------- /chp06/memoryGPIO/ledflash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/memoryGPIO/ledflash -------------------------------------------------------------------------------- /chp06/wiringPi/buttonLEDdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/wiringPi/buttonLEDdb -------------------------------------------------------------------------------- /chp06/wiringPi/fasttoggle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/wiringPi/fasttoggle -------------------------------------------------------------------------------- /chp08/i2c/test/testDS3231: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/i2c/test/testDS3231 -------------------------------------------------------------------------------- /chp08/spi/wiringPi/ADXL345: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/spi/wiringPi/ADXL345 -------------------------------------------------------------------------------- /chp08/uart/uartC/uartRPi3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/uart/uartC/uartRPi3 -------------------------------------------------------------------------------- /chp09/gpioExpander/display: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/gpioExpander/display -------------------------------------------------------------------------------- /chp09/gpioExpander/example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/gpioExpander/example -------------------------------------------------------------------------------- /chp09/gpioExpander/testI2C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/gpioExpander/testI2C -------------------------------------------------------------------------------- /chp09/gpioExpander/testSPI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/gpioExpander/testSPI -------------------------------------------------------------------------------- /chp09/pwmDriver/servotest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/pwmDriver/servotest -------------------------------------------------------------------------------- /chp10/character/character: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp10/character/character -------------------------------------------------------------------------------- /chp11/uart/command/command: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp11/uart/command/command -------------------------------------------------------------------------------- /chp12/clientserver/client: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp12/clientserver/client -------------------------------------------------------------------------------- /chp12/clientserver/server: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp12/clientserver/server -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/duplexify/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/.bin/mkdirp: -------------------------------------------------------------------------------- 1 | ../mkdirp/bin/cmd.js -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/.bin/nopt: -------------------------------------------------------------------------------- 1 | ../nopt/bin/nopt.js -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/.bin/semver: -------------------------------------------------------------------------------- 1 | ../semver/bin/semver -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/nopt/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /chp15/audio/320sample.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/audio/320sample.mp3 -------------------------------------------------------------------------------- /chp15/openCV/grayscale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/openCV/grayscale.png -------------------------------------------------------------------------------- /chp03/dts/bcm2709-rpi-2-b.dtb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp03/dts/bcm2709-rpi-2-b.dtb -------------------------------------------------------------------------------- /chp05/environment/environment: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/environment/environment -------------------------------------------------------------------------------- /chp05/overview/helloworldcpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/overview/helloworldcpp -------------------------------------------------------------------------------- /chp05/overview/pointerarray: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/overview/pointerarray -------------------------------------------------------------------------------- /chp05/overview/short_static: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/overview/short_static -------------------------------------------------------------------------------- /chp05/performance/Body.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/performance/Body.class -------------------------------------------------------------------------------- /chp05/performance/n-body.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/performance/n-body.pl -------------------------------------------------------------------------------- /chp05/performance/nbody.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/performance/nbody.class -------------------------------------------------------------------------------- /chp05/performance/nbodyp.hi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/performance/nbodyp.hi -------------------------------------------------------------------------------- /chp05/python2_C/ERPiModule.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/python2_C/ERPiModule.so -------------------------------------------------------------------------------- /chp05/python3_C/ERPiModule.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/python3_C/ERPiModule.so -------------------------------------------------------------------------------- /chp06/GPIO/tests/test_syspoll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/GPIO/tests/test_syspoll -------------------------------------------------------------------------------- /chp06/minimal_clk/minimal_clk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/minimal_clk/minimal_clk -------------------------------------------------------------------------------- /chp06/pthreads/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | g++ -pthread pthreads.cpp -o threads 3 | g++ -pthread counters.cpp -o counters 4 | -------------------------------------------------------------------------------- /chp08/i2c/test/testADXL345C: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/i2c/test/testADXL345C -------------------------------------------------------------------------------- /chp08/i2c/test/testADXL345Cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/i2c/test/testADXL345Cpp -------------------------------------------------------------------------------- /chp09/spiADC_MCP3008/ADCmulti: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/spiADC_MCP3008/ADCmulti -------------------------------------------------------------------------------- /chp09/spiADC_MCP3008/plot.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/spiADC_MCP3008/plot.pdf -------------------------------------------------------------------------------- /chp09/spiADC_MCP3208/ADCmulti: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/spiADC_MCP3208/ADCmulti -------------------------------------------------------------------------------- /chp09/spiADC_MCP3208/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ -O3 -o ADCmulti ADCmulti.cpp bus/SPIDevice.cpp bus/BusDevice.cpp 3 | -------------------------------------------------------------------------------- /chp09/spiADC_MCP3208/plot.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/spiADC_MCP3208/plot.pdf -------------------------------------------------------------------------------- /chp10/stepper/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ stepper.cpp motor/GPIO.cpp motor/StepperMotor.cpp -o stepper -pthread 3 | 4 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/readable-stream/node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/xtend/Makefile: -------------------------------------------------------------------------------- 1 | browser: 2 | node ./support/compile 3 | 4 | .PHONY: browser -------------------------------------------------------------------------------- /chp12/thingSpeak/thingSpeak: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp12/thingSpeak/thingSpeak -------------------------------------------------------------------------------- /chp12/webbrowser/webbrowser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp12/webbrowser/webbrowser -------------------------------------------------------------------------------- /chp13/jsonNodeMCU/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ jsonNodeMCU.cpp libjsoncpp.a network/SocketClient.cpp -o jsonNodeMCU 3 | -------------------------------------------------------------------------------- /chp13/jsonNodeMCU/jsonNodeMCU: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/jsonNodeMCU/jsonNodeMCU -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/sf/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/xbee-api/node_modules/buffer-reader/.npmignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | *.log 4 | -------------------------------------------------------------------------------- /chp14/QtWeatherServer/server: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp14/QtWeatherServer/server -------------------------------------------------------------------------------- /chp15/openCV/faceOutput.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/openCV/faceOutput.png -------------------------------------------------------------------------------- /chp05/makeLEDmulti/makeLEDmulti: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/makeLEDmulti/makeLEDmulti -------------------------------------------------------------------------------- /chp05/overview/sizeofvariables: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/overview/sizeofvariables -------------------------------------------------------------------------------- /chp05/performance/nbody_csharp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/performance/nbody_csharp -------------------------------------------------------------------------------- /chp06/GPIO/tests/test_callback: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/GPIO/tests/test_callback -------------------------------------------------------------------------------- /chp06/GPIO/tests/test_gpiokeys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/GPIO/tests/test_gpiokeys -------------------------------------------------------------------------------- /chp06/multicore/perftest_boost: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/multicore/perftest_boost -------------------------------------------------------------------------------- /chp08/spi/spi595Example/spi595: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/spi/spi595Example/spi595 -------------------------------------------------------------------------------- /chp08/spi/spiADXL345/spiADXL345: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/spi/spiADXL345/spiADXL345 -------------------------------------------------------------------------------- /chp09/gpioExpander/testing/test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/gpioExpander/testing/test -------------------------------------------------------------------------------- /chp09/spiADC_MCP3008/ADCExample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/spiADC_MCP3008/ADCExample -------------------------------------------------------------------------------- /chp09/spiADC_MCP3008/ADCmulti2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/spiADC_MCP3008/ADCmulti2 -------------------------------------------------------------------------------- /chp11/i2c/i2cTMP36warn/i2cTMP36: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp11/i2c/i2cTMP36warn/i2cTMP36 -------------------------------------------------------------------------------- /chp12/paho/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ paho.cpp -o paho -lpaho-mqtt3c 3 | g++ subscribe.cpp -o subscribe -lpaho-mqtt3c 4 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /chp13/jsonNodeMCU/libjsoncpp.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/jsonNodeMCU/libjsoncpp.a -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/async/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/extend/.npmignore: -------------------------------------------------------------------------------- 1 | test -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/test/fixtures/packed-file.txt: -------------------------------------------------------------------------------- 1 | bar -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/test/fixtures/to-pack/bar.txt: -------------------------------------------------------------------------------- 1 | baz -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/test/fixtures/to-pack/foo.txt: -------------------------------------------------------------------------------- 1 | bar -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/xbee-api/examples/chrome-tool/node_modules/xbee-api/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | *.swp 3 | -------------------------------------------------------------------------------- /chp15/fswebcam/exploringRPi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp15/fswebcam/exploringRPi.png -------------------------------------------------------------------------------- /library/build/libExploringRPi.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/library/build/libExploringRPi.a -------------------------------------------------------------------------------- /chp05/performance/cython/nbody.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/performance/cython/nbody.so -------------------------------------------------------------------------------- /chp05/python2_C/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ -O3 -shared ERPiModule.cpp -I/usr/include/python2.7/ -lpython2.7 -o ERPiModule.so 3 | -------------------------------------------------------------------------------- /chp05/python3_C/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ -O3 ERPiModule.cpp -shared -I/usr/include/python3.4/ -lpython3.4m -o ERPiModule.so 3 | -------------------------------------------------------------------------------- /chp08/spi/spiADXL345_cpp/SPITest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/spi/spiADXL345_cpp/SPITest -------------------------------------------------------------------------------- /chp08/spi/spidev_test/spidev_test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/spi/spidev_test/spidev_test -------------------------------------------------------------------------------- /chp09/bcm2835/plot_20000_100Hz.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/bcm2835/plot_20000_100Hz.pdf -------------------------------------------------------------------------------- /chp09/bcm2835/plot_20000_25Hz.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/bcm2835/plot_20000_25Hz.pdf -------------------------------------------------------------------------------- /chp09/bcm2835/plot_2000_200Hz.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/bcm2835/plot_2000_200Hz.pdf -------------------------------------------------------------------------------- /chp09/bcm2835/plot_2000_500Hz.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/bcm2835/plot_2000_500Hz.pdf -------------------------------------------------------------------------------- /chp10/cmake/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.0.2) 2 | project (hello) 3 | add_executable(hello hello.cpp) 4 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/mqtt-connection/node_modules/through2/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .jshintrc 3 | .travis.yml -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/through2/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .jshintrc 3 | .travis.yml -------------------------------------------------------------------------------- /chp12/webbrowserSSL/webbrowserSSL: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp12/webbrowserSSL/webbrowserSSL -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/.eslintignore: -------------------------------------------------------------------------------- 1 | dist 2 | -------------------------------------------------------------------------------- /chp14/QtWeatherServer/clientTest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp14/QtWeatherServer/clientTest -------------------------------------------------------------------------------- /chp14/threadedClientServer/client: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp14/threadedClientServer/client -------------------------------------------------------------------------------- /chp14/threadedClientServer/server: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp14/threadedClientServer/server -------------------------------------------------------------------------------- /library/build/libExploringRPi.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/library/build/libExploringRPi.so -------------------------------------------------------------------------------- /chp05/boostPython/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ -O3 erpi.cpp -shared -I/usr/include/python2.7/ -lpython2.7 -lboost_python -o erpi.so 3 | -------------------------------------------------------------------------------- /chp05/performance/NBodySystem.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/performance/NBodySystem.class -------------------------------------------------------------------------------- /chp06/GPIOpython/tests/test_callback: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/GPIOpython/tests/test_callback -------------------------------------------------------------------------------- /chp06/GPIOpython/tests/test_gpiokeys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/GPIOpython/tests/test_gpiokeys -------------------------------------------------------------------------------- /chp06/GPIOpython/tests/test_syspoll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp06/GPIOpython/tests/test_syspoll -------------------------------------------------------------------------------- /chp08/spi/spiADXL345_bus2/spiADXL345: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/spi/spiADXL345_bus2/spiADXL345 -------------------------------------------------------------------------------- /chp08/spi/spiADXL345_cpp/testADXL345: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/spi/spiADXL345_cpp/testADXL345 -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/duplexify/node_modules/readable-stream/.zuul.yml: -------------------------------------------------------------------------------- 1 | ui: tape 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/nan/include_dirs.js: -------------------------------------------------------------------------------- 1 | console.log(require('path').relative('.', __dirname)); 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/ansi/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/isstream/.npmignore: -------------------------------------------------------------------------------- 1 | *.tgz 2 | -------------------------------------------------------------------------------- /chp05/performance/cython/nbody_cython: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/performance/cython/nbody_cython -------------------------------------------------------------------------------- /chp05/performance/cython_opt/nbody.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/performance/cython_opt/nbody.so -------------------------------------------------------------------------------- /chp08/spi/spiADXL345/3-wire/spiADXL345: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp08/spi/spiADXL345/3-wire/spiADXL345 -------------------------------------------------------------------------------- /chp10/makefiles/Makefile: -------------------------------------------------------------------------------- 1 | all: hello test 2 | 3 | hello: 4 | g++ -o3 hello.cpp -o hello 5 | 6 | test: 7 | g++ -o3 test.cpp -o test 8 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/duplexify/node_modules/end-of-stream/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /chp13/Android/ERPi_Bluetooth_Chat.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/Android/ERPi_Bluetooth_Chat.apk -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | example 5 | *.sock 6 | dist 7 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/rc/node_modules/deep-extend/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /chp05/performance/cython_opt/nbody_cython: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/performance/cython_opt/nbody_cython -------------------------------------------------------------------------------- /chp06/GPIOpython/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ GPIO.cpp -shared -o gpio.so -I/usr/include/python2.7/ -lpython2.7 -pthread -lboost_python 3 | 4 | -------------------------------------------------------------------------------- /chp09/gpioExpander/multi_spi_testing/test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/gpioExpander/multi_spi_testing/test -------------------------------------------------------------------------------- /chp10/character/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ -o character character.cpp bus/SPIDevice.cpp bus/BusDevice.cpp display/LCDCharacterDisplay.cpp 3 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/MQTT.js.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp12/paho/node_modules/mqtt/MQTT.js.png -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/concat-stream/node_modules/readable-stream/node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/mqtt-connection/node_modules/reduplexer/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/json-stringify-safe/.npmignore: -------------------------------------------------------------------------------- 1 | /*.tgz 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/test/.npmignore: -------------------------------------------------------------------------------- 1 | */a 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /chp05/javaLED/exploringRPi/LEDExample.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/javaLED/exploringRPi/LEDExample.class -------------------------------------------------------------------------------- /chp05/performance/cython/backup/nbody_cython: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/performance/cython/backup/nbody_cython -------------------------------------------------------------------------------- /chp09/spiADC_MCP3208/results/plot_100Hz.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/spiADC_MCP3208/results/plot_100Hz.pdf -------------------------------------------------------------------------------- /chp09/spiADC_MCP3208/results/plot_250Hz.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/spiADC_MCP3208/results/plot_250Hz.pdf -------------------------------------------------------------------------------- /chp09/spiADC_MCP3208/results/plot_2kHz.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/spiADC_MCP3208/results/plot_2kHz.pdf -------------------------------------------------------------------------------- /chp09/spiADC_MCP3208/results/plot_5kHz.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/spiADC_MCP3208/results/plot_5kHz.pdf -------------------------------------------------------------------------------- /chp10/sharp/data: -------------------------------------------------------------------------------- 1 | 3925 10 2 | 2790 15 3 | 2200 20 4 | 1755 25 5 | 1528 30 6 | 1273 40 7 | 851 50 8 | 726 60 9 | 620 70 10 | 528 80 11 | -------------------------------------------------------------------------------- /chp12/clientserver/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ client.cpp network/SocketClient.cpp -o client 3 | g++ server.cpp network/SocketServer.cpp -o server 4 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/concat-stream/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/minimist/example/parse.js: -------------------------------------------------------------------------------- 1 | var argv = require('../')(process.argv.slice(2)); 2 | console.dir(argv); 3 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/rc/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | node_modules/* 3 | npm_debug.log 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/rc/node_modules/deep-extend/test/mocha.opts: -------------------------------------------------------------------------------- 1 | --reporter spec 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/ignore.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/.npmignore: -------------------------------------------------------------------------------- 1 | test/fixtures 2 | -------------------------------------------------------------------------------- /chp05/javaLED/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Building the Java Class Files - place in the exploringRPi folder/package" 3 | javac -d . LEDExample.java 4 | -------------------------------------------------------------------------------- /chp05/overview/helloworld.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char *argv[]){ 4 | printf("Hello World!\n"); 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/concat-stream/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/ws/node_modules/ultron/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | .tern-port 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/form-data/lib/browser.js: -------------------------------------------------------------------------------- 1 | module.exports = FormData; -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/node-uuid/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/example/reflect.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | console.dir(require('optimist').argv); 3 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/test/_/argv.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | console.log(JSON.stringify(process.argv)); 3 | -------------------------------------------------------------------------------- /library/docs/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Please do not try to install Doxygen or LaTeX on the Raspberry Pi itself" 3 | doxygen ExploringERPi.Doxyfile 4 | -------------------------------------------------------------------------------- /chp05/overview/short2.cpp: -------------------------------------------------------------------------------- 1 | // A really useless program, but a program nevertheless 2 | 3 | int main(int argc, char *argv[]){ 4 | 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /chp05/performance/cython_opt/backup/nbody_cython: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp05/performance/cython_opt/backup/nbody_cython -------------------------------------------------------------------------------- /chp08/spi/spiADXL345_cpp/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ testADXL345.cpp SPIDevice.cpp ADXL345.cpp -o testADXL345 3 | g++ SPITest.cpp SPIDevice.cpp -o SPITest 4 | -------------------------------------------------------------------------------- /chp09/gpioExpander/multi_spi_testing/testOOPmulti: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/gpioExpander/multi_spi_testing/testOOPmulti -------------------------------------------------------------------------------- /chp09/gpioExpander/testing/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ -o test test.cpp ../gpioExtender.cpp ../../../library/libExploringRPI.so -I"../../../library" -I".." 3 | -------------------------------------------------------------------------------- /chp09/spiADC_MCP3208/results/plot_1kHz_error.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/spiADC_MCP3208/results/plot_1kHz_error.pdf -------------------------------------------------------------------------------- /chp09/spiADC_MCP3208/results/plot_2kHz_clean.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/spiADC_MCP3208/results/plot_2kHz_clean.pdf -------------------------------------------------------------------------------- /chp09/spiADC_MCP3208/results/plot_500Hz_clean.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/spiADC_MCP3208/results/plot_500Hz_clean.pdf -------------------------------------------------------------------------------- /chp09/spiADC_MCP3208/results/plot_500Hz_error.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp09/spiADC_MCP3208/results/plot_500Hz_error.pdf -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/concat-stream/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/concat-stream/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/concat-stream/node_modules/typedarray/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/help-me/node_modules/pump/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | 5 | script: "npm test" 6 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/duplexify/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.11" 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/.zuul.yml: -------------------------------------------------------------------------------- 1 | ui: tape 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/ctype/.npmignore: -------------------------------------------------------------------------------- 1 | tst/ 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/test/.ignore: -------------------------------------------------------------------------------- 1 | .gitignore 2 | .*.swp 3 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.10 4 | - 0.11 5 | -------------------------------------------------------------------------------- /chp05/cython_exe/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | cython --embed test.pyx 3 | gcc test.c -I/usr/include/python3.4/ -lpython3.4m -o test -lutil -ldl -lpthread -lm 4 | 5 | -------------------------------------------------------------------------------- /chp10/cmake/hello.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace std; 3 | 4 | int main(){ 5 | cout << "Hello from the RPi!" << endl; 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /chp10/makefiles/hello.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace std; 3 | 4 | int main(){ 5 | cout << "Hello from the RPi!" << endl; 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/concat-stream/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/debug/node_modules/ms/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test 3 | History.md 4 | Makefile 5 | component.json 6 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/.npmignore: -------------------------------------------------------------------------------- 1 | *~ 2 | .#* 3 | node_modules 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/semver/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | coverage/ 3 | .nyc_output/ 4 | nyc_output/ 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/node_modules/minimist/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /chp05/overview/helloworld.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(int argc, char *argv[]){ 4 | std::cout << "Hello World!" << std::endl; 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /chp09/i2cDAC/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ dacTestApp.cpp I2CDevice.cpp DACDriver.cpp -o dactest 3 | g++ dacSignalTest.cpp I2CDevice.cpp DACDriver.cpp -o signaltest 4 | -------------------------------------------------------------------------------- /chp10/makefiles2/hello.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace std; 3 | 4 | int main(){ 5 | cout << "Hello from the RPi!" << endl; 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /chp10/sharp/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ -o sharp sharp.cpp bus/SPIDevice.cpp bus/BusDevice.cpp 3 | g++ -o sharpfit sharpfit.cpp bus/SPIDevice.cpp bus/BusDevice.cpp 4 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/duplexify/node_modules/readable-stream/node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/.npmignore: -------------------------------------------------------------------------------- 1 | serialport_native/build 2 | serialport_native.node 3 | serialport_native/.lock-wscript 4 | *.node 5 | .DS_Store 6 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test1.js: -------------------------------------------------------------------------------- 1 | exports.x = 1; 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test2.js: -------------------------------------------------------------------------------- 1 | exports.y = 2; 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/test/modules/test3.js: -------------------------------------------------------------------------------- 1 | exports.z = 3; 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/sntp/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib'); -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/node_modules/graceful-fs/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /chp05/makeLEDOOP/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Exploring Raspberry Pi - Building the makeLEDs application" 3 | g++ makeLEDs.cpp -o makeLEDs -std=c++11 4 | echo "Finished" 5 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/readable-stream/node_modules/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/duplexify/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/ansi/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "laxcomma": true, 3 | "asi": true 4 | } 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/asn1/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log 3 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/json-stringify-safe/test/mocha.opts: -------------------------------------------------------------------------------- 1 | --recursive 2 | --require must 3 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | -------------------------------------------------------------------------------- /chp14/QtWeather/build-QtWeather-Desktop-Debug/QtWeather: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp14/QtWeather/build-QtWeather-Desktop-Debug/QtWeather -------------------------------------------------------------------------------- /chp05/performance/cython/setup.py: -------------------------------------------------------------------------------- 1 | from distutils.core import setup 2 | from Cython.Build import cythonize 3 | 4 | setup( 5 | ext_modules = cythonize("nbody.pyx") 6 | ) 7 | -------------------------------------------------------------------------------- /chp07/testrpi.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace std; 3 | 4 | int main(){ 5 | cout << "Testing cross compilation for the RPi" << endl; 6 | return 0; 7 | } 8 | 9 | -------------------------------------------------------------------------------- /chp09/pwmDriver/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ pwmTestApp.cpp I2CDevice.cpp pwmDriver.cpp -o pwmtest 3 | g++ servoTestApp.cpp I2CDevice.cpp pwmDriver.cpp Servo.cpp -o servotest 4 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/duplexify/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/.npmignore: -------------------------------------------------------------------------------- 1 | .nyc_output 2 | nyc_output 3 | node_modules 4 | coverage 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar/.npmignore: -------------------------------------------------------------------------------- 1 | .*.swp 2 | node_modules 3 | examples/extract/ 4 | test/tmp/ 5 | test/fixtures/ 6 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/xbee-api/doc/90000976_W.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/xbee-api/doc/90000976_W.pdf -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/xbee-api/doc/90000982_S.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/xbee-api/doc/90000982_S.pdf -------------------------------------------------------------------------------- /chp05/performance/cython_opt/setup.py: -------------------------------------------------------------------------------- 1 | from distutils.core import setup 2 | from Cython.Build import cythonize 3 | 4 | setup( 5 | ext_modules = cythonize("nbody.pyx") 6 | ) 7 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/duplexify/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/duplexify/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | 6 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/semver/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '0.10' 4 | - '0.12' 5 | - 'iojs' 6 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/node_modules/minimist/example/parse.js: -------------------------------------------------------------------------------- 1 | var argv = require('../')(process.argv.slice(2)); 2 | console.dir(argv); 3 | -------------------------------------------------------------------------------- /chp07/test.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace std; 3 | 4 | int main(){ 5 | int x = 5; 6 | x++; 7 | cout << "The value of x is " << x << endl; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /chp10/makefiles/test.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace std; 3 | 4 | int main() { 5 | int x = 1, y = 5; 6 | cout << "z = x + y = " << x+y << endl; 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | certs/* 3 | [._]*.s[a-w][a-z] 4 | [._]s[a-w][a-z] 5 | *.un~ 6 | Session.vim 7 | .netrwhist 8 | *~ 9 | npm-debug.log 10 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/duplexify/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/mkdirp/node_modules/minimist/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/stringstream/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/test/_/bin.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('../../index').argv 3 | console.log(JSON.stringify(argv._)); 4 | -------------------------------------------------------------------------------- /chp14/gtk/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ `pkg-config --libs --cflags gtk+-3.0` -lwiringPi GTKsensor.cpp -o gtksensor 3 | #g++ `pkg-config --libs --cflags gtk+-3.0` GTKhello.cpp -o gtkhello 4 | -------------------------------------------------------------------------------- /chp05/cython/test.py: -------------------------------------------------------------------------------- 1 | from math import sin 2 | 3 | def integrate_sin(a,b,N): 4 | dx = (b-a)/N 5 | sum = 0 6 | for i in range(0,N): 7 | sum += sin(a+i*dx) 8 | return sum*dx 9 | -------------------------------------------------------------------------------- /chp10/makefiles2/test.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace std; 3 | 4 | int main() { 5 | int x = 1, y = 5; 6 | cout << "z = x + y = " << x+y << endl; 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/examples/client/simple-publish.js: -------------------------------------------------------------------------------- 1 | var mqtt = require('../..') 2 | , client = mqtt.connect(); 3 | 4 | client.publish('presence', 'hello!'); 5 | client.end(); 6 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/mqtt-packet/mqtt.js: -------------------------------------------------------------------------------- 1 | 2 | 'use strict'; 3 | 4 | exports.parser = require('./parser') 5 | exports.generate = require('./generate') 6 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/ws/node_modules/options/.npmignore: -------------------------------------------------------------------------------- 1 | npm-debug.log 2 | node_modules 3 | .*.swp 4 | .lock-* 5 | build/ 6 | 7 | test 8 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/.npmignore: -------------------------------------------------------------------------------- 1 | coverage 2 | tests 3 | node_modules 4 | examples 5 | release.sh 6 | disabled.appveyor.yml 7 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/xtend/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/node_modules/lru-cache/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/example/short.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist').argv; 3 | console.log('(%d,%d)', argv.x, argv.y); 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/xbee-api/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.10 4 | before_script: 5 | - npm install -g grunt-cli 6 | notifications: 7 | email: false 8 | -------------------------------------------------------------------------------- /chp06/multicore/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | g++ perftest.cpp -o perftest -pthread -std=c++11 3 | g++ perftest_boost.cpp -o perftest_boost -pthread -std=c++11 -lboost_system -lboost_thread -lboost_chrono 4 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/mqtt-connection/node_modules/reduplexer/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | build/ 3 | libleveldb.so 4 | libleveldb.a 5 | test-data/ 6 | _benchdb_* 7 | *.sw* 8 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '0.10' 4 | - '0.12' 5 | - 'iojs' 6 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | cosmicrealms.com 3 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/sntp/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | 6 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/tunnel-agent/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "node": true, 3 | "asi": true, 4 | "laxcomma": true 5 | } 6 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /chp14/threadedClientServer/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ client.cpp network/SocketClient.cpp -o client 3 | g++ server.cpp network/SocketServer.cpp network/ConnectionHandler.cpp -o server -pthread 4 | -------------------------------------------------------------------------------- /chp16/LED/Makefile: -------------------------------------------------------------------------------- 1 | obj-m+=led.o 2 | 3 | all: 4 | make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules 5 | clean: 6 | make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean 7 | -------------------------------------------------------------------------------- /chp16/hello/Makefile: -------------------------------------------------------------------------------- 1 | obj-m+=hello.o 2 | 3 | all: 4 | make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules 5 | clean: 6 | make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean 7 | -------------------------------------------------------------------------------- /chp08/i2c/test/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Building the ADXL345 example applications" 3 | g++ testADXL345.cpp -o testADXL345Cpp 4 | gcc testADXL345.c -o testADXL345C 5 | g++ ADXL345.cpp -o ADXL345 6 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/concat-stream/node_modules/readable-stream/node_modules/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/test-server.js: -------------------------------------------------------------------------------- 1 | var echo = require('./echo-server.js') 2 | 3 | echo.start(function(){ 4 | console.log('echo server is running') 5 | }) 6 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/build/Release/serialport.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/serialport/build/Release/serialport.node -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/mkdirp/node_modules/minimist/example/parse.js: -------------------------------------------------------------------------------- 1 | var argv = require('../')(process.argv.slice(2)); 2 | console.dir(argv); 3 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/example/parse.js: -------------------------------------------------------------------------------- 1 | var argv = require('../')(process.argv.slice(2)); 2 | console.dir(argv); 3 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/.npmignore: -------------------------------------------------------------------------------- 1 | .*.swp 2 | node_modules 3 | examples/extract/ 4 | test/tmp/ 5 | test/fixtures/ 6 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/xbee-api/node_modules/buffer-reader/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.11" 4 | - "0.10" 5 | before_script: 6 | - npm install -g grunt-cli 7 | -------------------------------------------------------------------------------- /chp16/button/Makefile: -------------------------------------------------------------------------------- 1 | obj-m+=button.o 2 | 3 | all: 4 | make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules 5 | clean: 6 | make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean 7 | -------------------------------------------------------------------------------- /chp16/gpio/Makefile: -------------------------------------------------------------------------------- 1 | obj-m+=gpio_test.o 2 | 3 | all: 4 | make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules 5 | clean: 6 | make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean 7 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/.zuul.yml: -------------------------------------------------------------------------------- 1 | ui: mocha-bdd 2 | browsers: 3 | - name: chrome 4 | version: latest 5 | - name: firefox 6 | version: latest 7 | - name: opera 8 | version: latest 9 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable-stream/node_modules/string_decoder/.npmignore: -------------------------------------------------------------------------------- 1 | build 2 | test 3 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-function/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/.npmignore: -------------------------------------------------------------------------------- 1 | .gitmodules 2 | deps 3 | docs 4 | Makefile 5 | node_modules 6 | test 7 | tools -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | .gitignore 3 | .travis.yml 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/xbee-api/examples/chrome-tool/icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/xbee-api/examples/chrome-tool/icon_128.png -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/xbee-api/examples/chrome-tool/icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/xbee-api/examples/chrome-tool/icon_16.png -------------------------------------------------------------------------------- /chp05/overview/void.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | int a = 5; 5 | void *p = &a; 6 | printf("The pointer p points at address %p and value %d\n", p, *((int *)p)); 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /chp08/i2c/wiringPi/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "This build requires that WiringPi is installed on the RPi" 3 | echo "Please see Chapter 6 on how to install the latest version" 4 | gcc DS3231.c -o rtc -lwiringPi 5 | -------------------------------------------------------------------------------- /chp10/drv8835/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "This build requires that WiringPi is installed on the RPi" 3 | echo "Please see Chapter 6 on how to install the latest version" 4 | g++ motor.cpp -o motor -lwiringPi 5 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/minimist/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.12" 6 | - "iojs" 7 | before_install: 8 | - npm install -g npm@~1.4.6 9 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/build/Release/.deps/Release/obj.target/action_after_build.stamp.d: -------------------------------------------------------------------------------- 1 | cmd_Release/obj.target/action_after_build.stamp := touch Release/obj.target/action_after_build.stamp 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable-stream/.npmignore: -------------------------------------------------------------------------------- 1 | build/ 2 | test/ 3 | examples/ 4 | fs.js 5 | zlib.js -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable-stream/duplex.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_duplex.js") 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | - 4.0 6 | - 4 7 | 8 | sudo: false 9 | -------------------------------------------------------------------------------- /chp08/spi/wiringPi/build: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "This build requires that WiringPi is installed on the RPi" 3 | echo "Please see Chapter 6 on how to install the latest version" 4 | gcc ADXL345.c -o ADXL345 -lwiringPi 5 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: false 3 | node_js: 4 | - "0.12" 5 | - "0.10" 6 | - "iojs-v1" 7 | - "iojs-v2" 8 | - "iojs-v3" 9 | - "4.0" 10 | - "4.1" 11 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/ws/.npmignore: -------------------------------------------------------------------------------- 1 | npm-debug.log 2 | node_modules 3 | .*.swp 4 | .lock-* 5 | build 6 | 7 | bench 8 | doc 9 | examples 10 | test 11 | 12 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable-stream/transform.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_transform.js") 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable-stream/writable.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_writable.js") 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/.npmignore: -------------------------------------------------------------------------------- 1 | .*.swp 2 | node_modules/ 3 | examples/deep-copy/ 4 | examples/path/ 5 | examples/filter-copy/ 6 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/example/nonopt.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist').argv; 3 | console.log('(%d,%d)', argv.x, argv.y); 4 | console.log(argv._); 5 | -------------------------------------------------------------------------------- /chp14/QtWeatherServer/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ clientTest.cpp network/SocketClient.cpp -o clientTest -pthread 3 | g++ server.cpp network/SocketServer.cpp network/ConnectionHandler.cpp -o server -pthread -lwiringPi 4 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/concat-stream/node_modules/typedarray/example/tarray.js: -------------------------------------------------------------------------------- 1 | var Uint8Array = require('../').Uint8Array; 2 | var ua = new Uint8Array(5); 3 | ua[1] = 256 + 55; 4 | console.log(ua[1]); 5 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/readable-stream/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable-stream/passthrough.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./lib/_stream_passthrough.js") 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/commander/node_modules/graceful-readlink/.npmignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .DS_Store 3 | node_modules/ 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | - 4.0 6 | 7 | sudo: false 8 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream/.npmignore: -------------------------------------------------------------------------------- 1 | .*.swp 2 | node_modules/ 3 | examples/deep-copy/ 4 | examples/path/ 5 | examples/filter-copy/ 6 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/node_modules/wordwrap/example/meat.js: -------------------------------------------------------------------------------- 1 | var wrap = require('wordwrap')(15); 2 | 3 | console.log(wrap('You and your whole family are made out of meat.')); 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/xbee-api/examples/chrome-tool/assets/screen01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/xbee-api/examples/chrome-tool/assets/screen01.png -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/duplexify/node_modules/readable-stream/node_modules/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/build/Release/.deps/Release/serialport.node.d: -------------------------------------------------------------------------------- 1 | cmd_Release/serialport.node := rm -rf "Release/serialport.node" && cp -af "Release/obj.target/serialport.node" "Release/serialport.node" 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/build/Release/obj.target/serialport.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/serialport/build/Release/obj.target/serialport.node -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/build/binding.Makefile: -------------------------------------------------------------------------------- 1 | # This file is generated by gyp; do not edit. 2 | 3 | export builddir_name ?= ./build/. 4 | .PHONY: all 5 | all: 6 | $(MAKE) serialport action_after_build 7 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable-stream/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/boom/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | - 4.0 6 | 7 | sudo: false 8 | 9 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /chp03/HelloRPiSleep.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | int main(){ 4 | int x=0; 5 | do{ 6 | printf("Hello Raspberry Pi!\n"); 7 | sleep(5); 8 | }while(x++<50); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /chp05/proc/whologgedin.c: -------------------------------------------------------------------------------- 1 | /* Written by Derek Molloy for the book "Exploring RPi */ 2 | 3 | #include 4 | #include 5 | int main(){ 6 | printf("The user logged in is %s\n", getlogin()); 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/node_modules/has-unicode/README.md~: -------------------------------------------------------------------------------- 1 | has-unicode 2 | =========== 3 | 4 | Try to guess if your terminal supports unicode 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/pinkie-promise/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = global.Promise || require('pinkie'); 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md). 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/xbee-api/examples/chrome-tool/node_modules/xbee-api/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.10 4 | before_script: 5 | - npm install -g grunt-cli 6 | notifications: 7 | email: false 8 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/help-me/example.js: -------------------------------------------------------------------------------- 1 | 2 | var commist = require('commist')() 3 | , help = require('./')() 4 | 5 | commist.register('help', help.toStdout) 6 | 7 | commist.parse(process.argv.splice(2)) 8 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/index.js: -------------------------------------------------------------------------------- 1 | 2 | var Server = require('./server.js') 3 | 4 | module.exports = require('./stream.js') 5 | module.exports.Server = Server 6 | module.exports.createServer = Server 7 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-function/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/xtend/Makefile: -------------------------------------------------------------------------------- 1 | browser: 2 | node ./support/compile 3 | 4 | .PHONY: browser -------------------------------------------------------------------------------- /chp15/v4l2/raw2mpg4: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Video for RPi Video Applications - derekmolloy.ie" 4 | echo "Converting raw file to mpeg4 format" 5 | 6 | avconv -f h264 -i output.raw -vcodec copy output.mp4 7 | 8 | echo "Finished" 9 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/concat-stream/node_modules/readable-stream/node_modules/process-nextick-args/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.11" 6 | - "0.12" 7 | - "iojs" 8 | -------------------------------------------------------------------------------- /chp13/nodemcu/luatool/main.lua: -------------------------------------------------------------------------------- 1 | tmr.alarm(0, 1000, 1, function() 2 | if wifi.sta.getip() == nil then 3 | print("Connecting to AP...") 4 | else 5 | print('IP: ',wifi.sta.getip()) 6 | tmr.stop(0) 7 | end 8 | end) 9 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/combined-stream/node_modules/delayed-stream/Makefile: -------------------------------------------------------------------------------- 1 | SHELL := /bin/bash 2 | 3 | test: 4 | @./test/run.js 5 | 6 | .PHONY: test 7 | 8 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/cryptiles/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | - 4.0 6 | 7 | sudo: false 8 | 9 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/example/boolean_single.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .boolean('v') 4 | .argv 5 | ; 6 | console.dir(argv.v); 7 | console.dir(argv._); 8 | -------------------------------------------------------------------------------- /chp15/openCV/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ -O2 `pkg-config --cflags --libs opencv` filter.cpp -o filter 3 | g++ -O2 `pkg-config --cflags --libs opencv` timing.cpp -o timing 4 | g++ -O2 `pkg-config --cflags --libs opencv` face.cpp -o face 5 | 6 | -------------------------------------------------------------------------------- /chp06/GPIO/tests/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ test_syspoll.cpp ../GPIO.cpp -I.. -o test_syspoll -pthread 3 | g++ test_callback.cpp ../GPIO.cpp -I.. -o test_callback -pthread 4 | g++ test_gpiokeys.cpp ../GPIO.cpp -I.. -o test_gpiokeys -pthread 5 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/concat-stream/node_modules/readable-stream/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/mkdirp/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.12" 6 | - "iojs" 7 | before_install: 8 | - npm install -g npm@~1.4.6 9 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/oauth-sign/README.md: -------------------------------------------------------------------------------- 1 | oauth-sign 2 | ========== 3 | 4 | OAuth 1 signing. Formerly a vendor lib in mikeal/request, now a standalone module. 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/rimraf/test/test-sync.js: -------------------------------------------------------------------------------- 1 | var rimraf = require("../rimraf") 2 | , path = require("path") 3 | rimraf.sync(path.join(__dirname, "target")) 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/example/default_hash.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var argv = require('optimist') 4 | .default({ x : 10, y : 10 }) 5 | .argv 6 | ; 7 | 8 | console.log(argv.x + argv.y); 9 | -------------------------------------------------------------------------------- /chp06/GPIOpython/tests/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ test_syspoll.cpp ../GPIO.cpp -I.. -o test_syspoll -pthread 3 | g++ test_callback.cpp ../GPIO.cpp -I.. -o test_callback -pthread 4 | g++ test_gpiokeys.cpp ../GPIO.cpp -I.. -o test_gpiokeys -pthread 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/boom/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md). 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md). 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/tunnel-agent/README.md: -------------------------------------------------------------------------------- 1 | tunnel-agent 2 | ============ 3 | 4 | HTTP proxy tunneling agent. Formerly part of mikeal/request, now a standalone module. 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/examples/client/simple-subscribe.js: -------------------------------------------------------------------------------- 1 | var mqtt = require('../..') 2 | , client = mqtt.connect(); 3 | 4 | client.subscribe('presence'); 5 | client.on('message', function(topic, message) { 6 | console.log(message); 7 | }); 8 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/nopt/node_modules/abbrev/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | To get started, sign the 3 | Contributor License Agreement. 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/example/default_singles.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .default('x', 10) 4 | .default('y', 10) 5 | .argv 6 | ; 7 | console.log(argv.x + argv.y); 8 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/xbee-api/examples/chrome-tool/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/xbee-api/examples/chrome-tool/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/xbee-api/examples/chrome-tool/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/xbee-api/examples/chrome-tool/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /chp14/QtWeatherClient/main.cpp: -------------------------------------------------------------------------------- 1 | #include "mainwindow.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | MainWindow w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /chp09/spiADC_MCP3008/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ -o ADCmulti ADCmulti.cpp bus/SPIDevice.cpp bus/BusDevice.cpp 3 | g++ -O3 -o ADCmulti2 ADCmulti2.cpp bus/SPIDevice.cpp bus/BusDevice.cpp 4 | g++ -o ADCExample ADCExample.cpp bus/SPIDevice.cpp bus/BusDevice.cpp 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable-stream/node_modules/core-util-is/README.md: -------------------------------------------------------------------------------- 1 | # core-util-is 2 | 3 | The `util.is*` functions introduced in Node v0.12. 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/rc/browser.js: -------------------------------------------------------------------------------- 1 | 2 | // when this is loaded into the browser, 3 | // just use the defaults... 4 | 5 | module.exports = function (name, defaults) { 6 | return defaults 7 | } 8 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/commander/node_modules/graceful-readlink/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.12" 5 | - "io.js" 6 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | 9 | pids 10 | logs 11 | results 12 | 13 | npm-debug.log 14 | node_modules 15 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/xbee-api/examples/chrome-tool/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/xbee-api/examples/chrome-tool/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /chp14/QtWeather/QtWeather/main.cpp: -------------------------------------------------------------------------------- 1 | #include "mainwindow.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | MainWindow w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /chp05/makeLED/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Exploring Raspberry Pi - Building the makeLED application" 3 | echo "The C++ version is called makeLED and the C version is called makeLEDC" 4 | g++ makeLED.cpp -o makeLED 5 | gcc makeLED.c -o makeLEDC 6 | echo "Finished" 7 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/concat-stream/node_modules/readable-stream/node_modules/util-deprecate/node.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * For Node.js, simply re-export the core `util.deprecate` function. 4 | */ 5 | 6 | module.exports = require('util').deprecate; 7 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/mqtt-packet/node_modules/bl/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.8 4 | - "0.10" 5 | branches: 6 | only: 7 | - master 8 | notifications: 9 | email: 10 | - rod@vagg.org 11 | script: npm test -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/duplexify/node_modules/readable-stream/node_modules/process-nextick-args/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.11" 6 | - "0.12" 7 | - "iojs" 8 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.12" 6 | - "iojs" 7 | before_install: 8 | - npm install -g npm@~1.4.6 9 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/aws-sign2/README.md: -------------------------------------------------------------------------------- 1 | aws-sign 2 | ======== 3 | 4 | AWS signing. Originally pulled from LearnBoost/knox, maintained as vendor in request, now a standalone module. 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/debug/index.js: -------------------------------------------------------------------------------- 1 | if ('undefined' == typeof window) { 2 | module.exports = require('./lib/debug'); 3 | } else { 4 | module.exports = require('./debug'); 5 | } 6 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar/test/fixtures.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar/test/fixtures.tgz -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/duplexify/node_modules/readable-stream/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/mkdirp/examples/pow.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('mkdirp'); 2 | 3 | mkdirp('/tmp/foo/bar/baz', function (err) { 4 | if (err) console.error(err) 5 | else console.log('pow!') 6 | }); 7 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/example/boolean_double.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .boolean(['x','y','z']) 4 | .argv 5 | ; 6 | console.dir([ argv.x, argv.y, argv.z ]); 7 | console.dir(argv._); 8 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/example/divide.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var argv = require('optimist') 4 | .usage('Usage: $0 -x [num] -y [num]') 5 | .demand(['x','y']) 6 | .argv; 7 | 8 | console.log(argv.x / argv.y); 9 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/build/serialport/v2.0.2/Release/node-v46-linux-arm/serialport.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/serialport/build/serialport/v2.0.2/Release/node-v46-linux-arm/serialport.node -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/nopt/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | language: node_js 3 | node_js: 4 | - '0.8' 5 | - '0.10' 6 | - '0.12' 7 | - 'iojs' 8 | before_install: 9 | - npm install -g npm@latest 10 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec \ 6 | --bail 7 | 8 | .PHONY: test -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @node_modules/.bin/tape test/*.js 4 | 5 | .PHONY: test 6 | 7 | -------------------------------------------------------------------------------- /chp11/spi/spi.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main() { 5 | char data[2] = {0, 99}; 6 | wiringPiSPISetupMode(0, 1000000, 0); 7 | wiringPiSPIDataRW (0, data, 2) ; 8 | printf("Transaction complete...\n"); 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/mqtt-connection/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.10 4 | - 0.8 5 | before_install: 6 | - npm install npm@v1.4-latest -g 7 | matrix: 8 | fast_finish: true 9 | allow_failures: 10 | - node_js: "0.11" 11 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/process-nextick-args/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.11" 6 | - "0.12" 7 | - "iojs" 8 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/rimraf/test/test-async.js: -------------------------------------------------------------------------------- 1 | var rimraf = require("../rimraf") 2 | , path = require("path") 3 | rimraf(path.join(__dirname, "target"), function (er) { 4 | if (er) throw er 5 | }) 6 | -------------------------------------------------------------------------------- /chp15/fswebcam/fswebcam.conf: -------------------------------------------------------------------------------- 1 | device /dev/video0 2 | input 0 3 | resolution 1280x720 4 | bottom-banner 5 | font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 6 | title "Exploring Raspberry Pi" 7 | timestamp "%H:%M:%S %d/%m/%Y (%Z)" 8 | png 0 9 | save exploringRPi.png 10 | -------------------------------------------------------------------------------- /chp15/v4l2/streamVideoUDP_RPi: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Video Streaming for the Raspberry Pi - derekmolloy.ie" 3 | echo "Piping the output of raspivid to avconv" 4 | 5 | raspivid -t 0 -w 1024 -h 768 -fps 30 -b 8000000 -o - | avconv -re -i - -vcodec copy -f h264 udp://192.168.1.4:12345 6 | -------------------------------------------------------------------------------- /chp09/gpioExpander/multi_spi_testing/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ -o test test.cpp ../gpioExtender.cpp ../../../library/libExploringRPI.so -I"../../../library" -I".." 3 | g++ -o testOOPmulti testOOPmulti.cpp ../gpioExtender.cpp ../../../library/libExploringRPI.so -I"../../../library" -I".." 4 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/minimist/test/whitespace.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('whitespace should be whitespace' , function (t) { 5 | t.plan(1); 6 | var x = parse([ '-x', '\t' ]).x; 7 | t.equal(x, '\t'); 8 | }); 9 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/duplexify/node_modules/readable-stream/node_modules/util-deprecate/node.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * For Node.js, simply re-export the core `util.deprecate` function. 4 | */ 5 | 6 | module.exports = require('util').deprecate; 7 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/stringstream/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | *.gz 9 | 10 | pids 11 | logs 12 | results 13 | 14 | node_modules 15 | npm-debug.log -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar/test/cb-never-called-1.0.1.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar/test/cb-never-called-1.0.1.tgz -------------------------------------------------------------------------------- /chp15/fswebcam/fswebcamrpi.conf: -------------------------------------------------------------------------------- 1 | device /dev/video1 2 | input 0 3 | resolution 1280x720 4 | bottom-banner 5 | font /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf 6 | title "Exploring Raspberry Pi" 7 | timestamp "%H:%M:%S %d/%m/%Y (%Z)" 8 | png 0 9 | save exploringRPi.png 10 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/gauge/example.png -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/test/fixtures/packed.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/test/fixtures/packed.tar.gz -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/xbee-api/examples/chrome-tool/launch.js: -------------------------------------------------------------------------------- 1 | chrome.app.runtime.onLaunched.addListener(function() { 2 | chrome.app.window.create('index.html', { 3 | id: "mainwin", 4 | bounds: { 5 | width: 570, 6 | height: 480 7 | } 8 | }); 9 | }); 10 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar/node_modules/fstream/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - iojs 4 | - 0.12 5 | - 0.10 6 | - 0.8 7 | before_install: 8 | - "npm config set spin false" 9 | - "npm install -g npm/npm" 10 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/mqtt-packet/packet.js: -------------------------------------------------------------------------------- 1 | 2 | function Packet() { 3 | this.cmd = null 4 | this.retain = false 5 | this.qos = 0 6 | this.dup = false 7 | this.length = -1 8 | this.topic = null 9 | this.payload = null 10 | } 11 | 12 | module.exports = Packet 13 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/test/store.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var Store = require('../lib/store'), 3 | abstractTest = require('../test/abstract_store'); 4 | 5 | describe('in-memory store', function () { 6 | abstractTest(function (done) { 7 | done(null, new Store()); 8 | }); 9 | }); 10 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/lib/util/nw-pre-gyp/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "index.html", 3 | "name": "nw-pre-gyp-module-test", 4 | "description": "Node-webkit-based module test.", 5 | "version": "0.0.1", 6 | "window": { 7 | "show": false 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable-stream/node_modules/isarray/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Array.isArray || function (arr) { 2 | return Object.prototype.toString.call(arr) == '[object Array]'; 3 | }; 4 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/forever-agent/README.md: -------------------------------------------------------------------------------- 1 | forever-agent 2 | ============= 3 | 4 | HTTP Agent that keeps socket connections alive between keep-alive requests. Formerly part of mikeal/request, now a standalone module. 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/images/hawk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/images/hawk.png -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/images/logo.png -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/test/fixtures.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/test/fixtures.tgz -------------------------------------------------------------------------------- /chp05/cython/test.pyx: -------------------------------------------------------------------------------- 1 | cdef extern from "math.h": 2 | double sin(double x) 3 | 4 | cpdef double integrate_sin(double a, double b, int N): 5 | cdef double dx, s 6 | cdef int i 7 | dx = (b-a)/N 8 | sum = 0 9 | for i in range(0,N): 10 | sum += sin(a+i*dx) 11 | return sum*dx 12 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/lib/schemas/har.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "required": [ 4 | "log" 5 | ], 6 | "properties": { 7 | "log": { 8 | "$ref": "#log" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/stringstream/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2012 Michael Hart (michael.hart.au@gmail.com) 2 | 3 | This project is free software released under the MIT license: 4 | http://www.opensource.org/licenses/mit-license.php 5 | -------------------------------------------------------------------------------- /chp12/cgi-bin/temperature.cgi: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Content-type: text/html" 3 | echo "" 4 | echo '' 5 | echo '' 6 | echo 'Pi Weather Sensor' 7 | echo '

Pi Weather Sensor

' 8 | /usr/local/bin/dht 9 | echo '' 10 | 11 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/util-deprecate/node.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * For Node.js, simply re-export the core `util.deprecate` function. 4 | */ 5 | 6 | module.exports = require('util').deprecate; 7 | -------------------------------------------------------------------------------- /chp14/simpleQt/simpleQt.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | int main(int argc, char *argv[ ]){ 4 | QApplication app(argc, argv); 5 | QLabel label("Hello Raspberry Pi!"); 6 | label.resize(200, 40); 7 | label.show(); 8 | return app.exec(); 9 | } 10 | 11 | -------------------------------------------------------------------------------- /chp05/boostPython/test.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | # A Python program that calls C program code 3 | import erpi 4 | 5 | print "Start of the Python program" 6 | print erpi.hello("Derek") 7 | val = erpi.integrate(0, 3.14159, 1000000) 8 | print "The integral result is: ", val 9 | print "End of the Python program" 10 | -------------------------------------------------------------------------------- /chp12/thermal/record_temp.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | TEMPERATURE="/sys/class/thermal/thermal_zone0/temp" 3 | COUNT=0 4 | echo "#Temperature Recordings" > data 5 | # bash while loop 6 | while [ $COUNT -lt 40 ]; do 7 | echo $COUNT " " `cat $TEMPERATURE` >> data 8 | let COUNT=COUNT+1 9 | sleep 10 10 | done 11 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/node_modules/lru-cache/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '0.8' 4 | - '0.10' 5 | - '0.12' 6 | - 'iojs' 7 | before_install: 8 | - npm install -g npm@latest 9 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/example/xup.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist').argv; 3 | 4 | if (argv.rif - 5 * argv.xup > 7.138) { 5 | console.log('Buy more riffiwobbles'); 6 | } 7 | else { 8 | console.log('Sell the xupptumblers'); 9 | } 10 | 11 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/test/whitespace.js: -------------------------------------------------------------------------------- 1 | var optimist = require('../'); 2 | var test = require('tap').test; 3 | 4 | test('whitespace should be whitespace' , function (t) { 5 | t.plan(1); 6 | var x = optimist.parse([ '-x', '\t' ]).x; 7 | t.equal(x, '\t'); 8 | }); 9 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/node_modules/minimist/test/whitespace.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('whitespace should be whitespace' , function (t) { 5 | t.plan(1); 6 | var x = parse([ '-x', '\t' ]).x; 7 | t.equal(x, '\t'); 8 | }); 9 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var ansiRegex = require('ansi-regex'); 3 | var re = new RegExp(ansiRegex().source); // remove the `g` flag 4 | module.exports = re.test.bind(re); 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/.dir-locals.el: -------------------------------------------------------------------------------- 1 | ((nil . ((indent-tabs-mode . nil) 2 | (tab-width . 8) 3 | (fill-column . 80))) 4 | (js-mode . ((js-indent-level . 2) 5 | (indent-tabs-mode . nil) 6 | ))) -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/isstream/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.11" 6 | branches: 7 | only: 8 | - master 9 | notifications: 10 | email: 11 | - rod@vagg.org 12 | script: npm test 13 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/xbee-api/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "proto": true, 3 | "eqeqeq": true, 4 | "immed": true, 5 | "latedef": true, 6 | "newcap": true, 7 | "noarg": true, 8 | "sub": true, 9 | "undef": true, 10 | "unused": true, 11 | "boss": true, 12 | "eqnull": true, 13 | "node": true 14 | } 15 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/mqtt-packet/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: false 3 | node_js: 4 | - 4.0 5 | - iojs-v3 6 | - iojs-v2 7 | - iojs-v1 8 | - 0.12 9 | - 0.10 10 | - 0.8 11 | before_install: 12 | - node -v | grep v0.8 && npm install npm@1.4.28 -g || echo "no need to update NPM" 13 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/mime-types/node_modules/mime-db/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * mime-db 3 | * Copyright(c) 2014 Jonathan Ong 4 | * MIT Licensed 5 | */ 6 | 7 | /** 8 | * Module exports. 9 | */ 10 | 11 | module.exports = require('./db.json') 12 | -------------------------------------------------------------------------------- /chp05/overview/pointerarray.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | int x[5] = { 100, 200, 300, 400, 500 }; 5 | int *p = &x[0], i; 6 | 7 | for(i=0; i<5; i++){ 8 | (*(p++))++; 9 | } 10 | for(i=0; i<5; i++){ 11 | printf("The value of x[%d] is %d\n", i, x[i]); 12 | } 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /chp12/cgi-bin/test.cgi: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Content-type: text/html" 3 | echo "" 4 | echo '' 5 | echo '' 6 | echo 'Hello Raspberry Pi' 7 | echo '

Hello Raspberry Pi

' 8 | hostname 9 | echo ' has been up ' 10 | uptime 11 | echo '' 12 | 13 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/has-ansi/node_modules/ansi-regex/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = function () { 3 | return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g; 4 | }; 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/strip-ansi/node_modules/ansi-regex/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = function () { 3 | return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g; 4 | }; 5 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/jsonpointer/.travis.yml: -------------------------------------------------------------------------------- 1 | language: "node_js" 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | - 0.10 6 | - 0.11 7 | - 0.12 8 | - iojs-v1.0 9 | - iojs-v2.0 10 | - iojs 11 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/derekmolloy/exploringrpi/HEAD/chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png -------------------------------------------------------------------------------- /chp10/oled/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "These examples require the wiringPi library (see Chp.6) and" 3 | echo " the ArduiPi_OLED library installed (see Chp.10)" 4 | 5 | g++ oledTest.cpp -o oledTest -lArduiPi_OLED 6 | g++ oledDHT.cpp -o dht -lbcm2835 -lArduiPi_OLED 7 | 8 | echo "End of build script. Execute programs with sudo." 9 | 10 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/test/whitespace.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('whitespace should be whitespace' , function (t) { 5 | t.plan(1); 6 | var x = parse([ '-x', '\t' ]).x; 7 | t.equal(x, '\t'); 8 | }); 9 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/test/helpers/server_process.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | /*eslint no-unused-vars:0*/ 3 | var server, 4 | mqtt = require('../../'); 5 | 6 | server = new mqtt.Server(function (client) { 7 | client.on('connect', function () { 8 | client.connack({ returnCode: 0 }); 9 | }); 10 | }).listen(3000, 'localhost'); 11 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/mkdirp/node_modules/minimist/test/whitespace.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('whitespace should be whitespace' , function (t) { 5 | t.plan(1); 6 | var x = parse([ '-x', '\t' ]).x; 7 | t.equal(x, '\t'); 8 | }); 9 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/strip-ansi/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var ansiRegex = require('ansi-regex')(); 3 | 4 | module.exports = function (str) { 5 | return typeof str === 'string' ? str.replace(ansiRegex, '') : str; 6 | }; 7 | -------------------------------------------------------------------------------- /chp05/performance/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Exploring Raspberry Pi Chapter 5 Performance Test Code" 3 | echo "Building the Executables" 4 | g++ -O3 n-body.cpp -o n-body 5 | g++ -O3 --std=c++11 n-body2.cpp -o n-body2 6 | 7 | echo "Building the Java Executable" 8 | javac nbody.java 9 | 10 | echo "Finished Building the Compiled Programs" 11 | -------------------------------------------------------------------------------- /chp08/i2c/systemd/erpi_hwclock.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=ERPI RTC Service 3 | Before=getty.target 4 | 5 | [Service] 6 | Type=oneshot 7 | ExecStartPre=/bin/sh -c "/bin/echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device" 8 | ExecStart=/sbin/hwclock -s 9 | RemainAfterExit=yes 10 | 11 | [Install] 12 | WantedBy=multi-user.target 13 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/example.js: -------------------------------------------------------------------------------- 1 | var mqtt = require('./'); 2 | var client = mqtt.connect('mqtt://test.mosquitto.org'); 3 | 4 | client.subscribe('presence'); 5 | client.publish('presence', 'Hello mqtt'); 6 | 7 | client.on('message', function (topic, message) { 8 | console.log(message.toString()); 9 | }); 10 | 11 | client.end(); 12 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/minimist/test/parse_modified.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('parse with modifier functions' , function (t) { 5 | t.plan(1); 6 | 7 | var argv = parse([ '-b', '123' ], { boolean: 'b' }); 8 | t.deepEqual(argv, { b: true, _: [123] }); 9 | }); 10 | -------------------------------------------------------------------------------- /chp13/nodemcu/luatool/init.lua: -------------------------------------------------------------------------------- 1 | print('init.lua ver 1.2') 2 | wifi.setmode(wifi.STATION) 3 | print('set mode=STATION (mode='..wifi.getmode()..')') 4 | print('MAC: ',wifi.sta.getmac()) 5 | print('chip: ',node.chipid()) 6 | print('heap: ',node.heap()) 7 | -- wifi config start 8 | wifi.sta.config("SSID","MasterPassword") 9 | -- wifi config end 10 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/example/string.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .string('x', 'y') 4 | .argv 5 | ; 6 | console.dir([ argv.x, argv.y ]); 7 | 8 | /* Turns off numeric coercion: 9 | ./node string.js -x 000123 -y 9876 10 | [ '000123', '9876' ] 11 | */ 12 | -------------------------------------------------------------------------------- /chp10/makefiles2/Makefile: -------------------------------------------------------------------------------- 1 | CC = g++ 2 | CFLAGS = -c -o3 -Wall 3 | LDFLAGS = 4 | 5 | all: hello test 6 | 7 | hello: hello.o 8 | $(CC) $< -o $@ 9 | hello.o: hello.cpp 10 | $(CC) $(CFLAGS) $< -o $@ 11 | test: test.o 12 | $(CC) $(LDFLAGS) $< -o $@ 13 | test.o: test.cpp 14 | $(CC) $(CFLAGS) $< -o $@ 15 | clean: 16 | rm -rf *.o hello test 17 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/concat-stream/node_modules/typedarray/test/tarray.js: -------------------------------------------------------------------------------- 1 | var TA = require('../'); 2 | var test = require('tape'); 3 | 4 | test('tiny u8a test', function (t) { 5 | var ua = new(TA.Uint8Array)(5); 6 | t.equal(ua.length, 5); 7 | ua[1] = 256 + 55; 8 | t.equal(ua[1], 55); 9 | t.end(); 10 | }); 11 | -------------------------------------------------------------------------------- /chp15/audio/readme: -------------------------------------------------------------------------------- 1 | 320sample is from: http://sampleswap.org/mp3/creative-commons/free-music.php?show=4 2 | mylostbeat by tylersrevenge 3 | Used under a Creative Commons License (available for commercial or non-commercial use) 4 | 5 | Sound effect is from testsounds.com under a Creative Commons License (available for 6 | commercial or non-commercial use) 7 | -------------------------------------------------------------------------------- /chp05/cython/setup.py: -------------------------------------------------------------------------------- 1 | from distutils.core import setup 2 | from distutils.extension import Extension 3 | from Cython.Distutils import build_ext 4 | 5 | ext_modules = [Extension("test", ["test.pyx"])] 6 | 7 | setup( 8 | name = 'random number sum application', 9 | cmdclass = {'build_ext' : build_ext }, 10 | ext_modules = ext_modules 11 | ) 12 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/hwtest/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "node-sptest", 3 | "version": "0.0.0", 4 | "main": "index.js", 5 | "scripts": { 6 | "test": "echo \"Error: no test specified\" && exit 1" 7 | }, 8 | "author": "", 9 | "license": "ISC", 10 | "dependencies": { 11 | "serialport": "^1.4.6" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/lib/error.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | function ValidationError (errors) { 4 | this.name = 'ValidationError' 5 | this.errors = errors 6 | } 7 | 8 | ValidationError.prototype = Error.prototype 9 | 10 | module.exports = ValidationError 11 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/example/bool.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var util = require('util'); 3 | var argv = require('optimist').argv; 4 | 5 | if (argv.s) { 6 | util.print(argv.fr ? 'Le chat dit: ' : 'The cat says: '); 7 | } 8 | console.log( 9 | (argv.fr ? 'miaou' : 'meow') + (argv.p ? '.' : '') 10 | ); 11 | -------------------------------------------------------------------------------- /chp05/overview/pointers2.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | int y = 1000, z; 5 | int *p = &y; 6 | printf("The pointer p has the value %d and address: %p\n", *p, p); 7 | z = *p++ + 5; 8 | printf("The pointer p has the value %d and address: %p\n", *p, p); 9 | printf("The variable z has the value %d\n", z); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/ws/lib/Validation.fallback.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * ws: a node.js websocket client 3 | * Copyright(c) 2011 Einar Otto Stangvik 4 | * MIT Licensed 5 | */ 6 | 7 | module.exports.Validation = { 8 | isValidUTF8: function(buffer) { 9 | return true; 10 | } 11 | }; 12 | 13 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/ws/node_modules/options/Makefile: -------------------------------------------------------------------------------- 1 | ALL_TESTS = $(shell find test/ -name '*.test.js') 2 | 3 | run-tests: 4 | @./node_modules/.bin/mocha \ 5 | -t 2000 \ 6 | $(TESTFLAGS) \ 7 | $(TESTS) 8 | 9 | test: 10 | @$(MAKE) NODE_PATH=lib TESTS="$(ALL_TESTS)" run-tests 11 | 12 | .PHONY: test 13 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js: -------------------------------------------------------------------------------- 1 | var balanced = require('./'); 2 | 3 | console.log(balanced('{', '}', 'pre{in{nested}}post')); 4 | console.log(balanced('{', '}', 'pre{first}between{second}post')); 5 | 6 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/xbee-api/examples/chrome-tool/node_modules/xbee-api/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "curly": true, 3 | "eqeqeq": true, 4 | "immed": true, 5 | "latedef": true, 6 | "newcap": true, 7 | "noarg": true, 8 | "sub": true, 9 | "undef": true, 10 | "unused": true, 11 | "boss": true, 12 | "eqnull": true, 13 | "node": true 14 | } 15 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/doc/help.txt: -------------------------------------------------------------------------------- 1 | MQTT.js command line interface, available commands are: 2 | 3 | * publish publish a message to the broker 4 | * subscribe subscribe for updates from the broker 5 | * version the current MQTT.js version 6 | * help help about commands 7 | 8 | Launch 'mqtt help [command]' to know more about the commands. 9 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/rimraf/AUTHORS: -------------------------------------------------------------------------------- 1 | # Authors sorted by whether or not they're me. 2 | Isaac Z. Schlueter (http://blog.izs.me) 3 | Wayne Larsen (http://github.com/wvl) 4 | ritch 5 | Marcel Laverdet 6 | Yosef Dinerstein 7 | -------------------------------------------------------------------------------- /chp05/overview/pointers.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | int y = 1000; 5 | int *p; 6 | p = &y; 7 | printf("The variable has value %d and the address %p.\n", y, &y); 8 | printf("The pointer stores %p and points at value %d.\n", p, *p); 9 | printf("The pointer itself has address %p and size %d.\n", &p, sizeof(p)); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /chp03/dts/skeleton.dtsi: -------------------------------------------------------------------------------- 1 | /* 2 | * Skeleton device tree; the bare minimum needed to boot; just include and 3 | * add a compatible value. The bootloader will typically populate the memory 4 | * node. 5 | */ 6 | 7 | / { 8 | #address-cells = <1>; 9 | #size-cells = <1>; 10 | chosen { }; 11 | aliases { }; 12 | memory { device_type = "memory"; reg = <0 0>; }; 13 | }; 14 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/sntp/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @node node_modules/lab/bin/lab 3 | test-cov: 4 | @node node_modules/lab/bin/lab -t 100 -m 3000 5 | test-cov-html: 6 | @node node_modules/lab/bin/lab -r html -o coverage.html 7 | 8 | .PHONY: test test-cov test-cov-html 9 | 10 | -------------------------------------------------------------------------------- /chp08/i2c/wiringPi/DS3231.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main(){ 5 | int fd = wiringPiI2CSetup(0x68); 6 | int secs = wiringPiI2CReadReg8(fd, 0x00); 7 | int mins = wiringPiI2CReadReg8(fd, 0x01); 8 | int hours = wiringPiI2CReadReg8(fd, 0x02); 9 | printf("The RTC time is %2d:%02d:%02d\n", hours, mins, secs); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/lib/schemas/cache.json: -------------------------------------------------------------------------------- 1 | { 2 | "properties": { 3 | "beforeRequest": { 4 | "$ref": "#cacheEntry" 5 | }, 6 | "afterRequest": { 7 | "$ref": "#cacheEntry" 8 | }, 9 | "comment": { 10 | "type": "string" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/lib/index.js: -------------------------------------------------------------------------------- 1 | // Load modules 2 | 3 | var Stringify = require('./stringify'); 4 | var Parse = require('./parse'); 5 | 6 | 7 | // Declare internals 8 | 9 | var internals = {}; 10 | 11 | 12 | module.exports = { 13 | stringify: Stringify, 14 | parse: Parse 15 | }; 16 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js: -------------------------------------------------------------------------------- 1 | var concatMap = require('../'); 2 | var xs = [ 1, 2, 3, 4, 5, 6 ]; 3 | var ys = concatMap(xs, function (x) { 4 | return x % 2 ? [ x - 0.1, x, x + 0.1 ] : []; 5 | }); 6 | console.dir(ys); 7 | -------------------------------------------------------------------------------- /chp14/simpleQt/simpleQt.pro: -------------------------------------------------------------------------------- 1 | ###################################################################### 2 | # Automatically generated by qmake (3.0) Mon Nov 16 04:02:43 2015 3 | ###################################################################### 4 | 5 | TEMPLATE = app 6 | QT += widgets 7 | TARGET = simpleQt 8 | INCLUDEPATH += . 9 | 10 | # Input 11 | SOURCES += simpleQt.cpp 12 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | before_install: 3 | - curl --location http://git.io/1OcIZA | bash -s 4 | node_js: 5 | - 0.8 6 | - 0.10 7 | - 0.11 8 | branches: 9 | only: 10 | - master 11 | notifications: 12 | email: 13 | - rod@vagg.org 14 | script: npm test 15 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | complexity.md 19 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/optimist/node_modules/minimist/test/parse_modified.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('parse with modifier functions' , function (t) { 5 | t.plan(1); 6 | 7 | var argv = parse([ '-b', '123' ], { boolean: 'b' }); 8 | t.deepEqual(argv, { b: true, _: ['123'] }); 9 | }); 10 | -------------------------------------------------------------------------------- /chp12/express/hello.js: -------------------------------------------------------------------------------- 1 | var express = require('express'); 2 | var app = express(); 3 | 4 | app.get('/', function (req, res) { 5 | res.send('Hello from the RPi!'); 6 | }); 7 | 8 | var server = app.listen(5050, function () { 9 | var host = server.address().address; 10 | var port = server.address().port; 11 | console.log('Application listening at http://%s:%s', host, port); 12 | }); 13 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/mqtt-packet/node_modules/bl/test/test.js: -------------------------------------------------------------------------------- 1 | require('./basic-test') 2 | 3 | if (!process.env.SAUCE_KEY || !process.env.SAUCE_USER) 4 | return console.log('SAUCE_KEY and/or SAUCE_USER not set, not running sauce tests') 5 | 6 | if (!/v0\.10/.test(process.version)) 7 | return console.log('Not Node v0.10.x, not running sauce tests') 8 | 9 | require('./sauce.js') -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/async/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "async", 3 | "repo": "caolan/async", 4 | "description": "Higher-order functions and common patterns for asynchronous code", 5 | "version": "0.1.23", 6 | "keywords": [], 7 | "dependencies": {}, 8 | "development": {}, 9 | "main": "lib/async.js", 10 | "scripts": [ "lib/async.js" ] 11 | } 12 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/boom/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | 19 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/sntp/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | 19 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/rimraf/test/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | code=0 4 | for i in test-*.js; do 5 | echo -n $i ... 6 | bash setup.sh 7 | node $i 8 | if [ -d target ]; then 9 | echo "fail" 10 | code=1 11 | else 12 | echo "pass" 13 | fi 14 | done 15 | rm -rf target 16 | exit $code 17 | -------------------------------------------------------------------------------- /chp09/gpioExpander/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ -o example example.cpp gpioExpander.cpp bus/SPIDevice.cpp bus/I2CDevice.cpp bus/BusDevice.cpp 3 | g++ -Wall -o testSPI testSPI.cpp bus/SPIDevice.cpp bus/I2CDevice.cpp bus/BusDevice.cpp 4 | g++ -o testI2C testI2C.cpp bus/I2CDevice.cpp bus/BusDevice.cpp 5 | g++ -o display displayRegisters.cpp gpioExpander.cpp bus/I2CDevice.cpp bus/SPIDevice.cpp bus/BusDevice.cpp 6 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/ws/lib/BufferUtil.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ws: a node.js websocket client 5 | * Copyright(c) 2011 Einar Otto Stangvik 6 | * MIT Licensed 7 | */ 8 | 9 | try { 10 | module.exports = require('bufferutil'); 11 | } catch (e) { 12 | module.exports = require('./BufferUtil.fallback'); 13 | } 14 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/rc/node_modules/minimist/test/parse_modified.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('parse with modifier functions' , function (t) { 5 | t.plan(1); 6 | 7 | var argv = parse([ '-b', '123' ], { boolean: 'b' }); 8 | t.deepEqual(argv, { b: true, _: [123] }); 9 | }); 10 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/minimatch/test/extglob-ending-with-state-char.js: -------------------------------------------------------------------------------- 1 | var test = require('tap').test 2 | var minimatch = require('../') 3 | 4 | test('extglob ending with statechar', function(t) { 5 | t.notOk(minimatch('ax', 'a?(b*)')) 6 | t.ok(minimatch('ax', '?(a*|b)')) 7 | t.end() 8 | }) 9 | -------------------------------------------------------------------------------- /chp15/boost/test.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | using namespace boost::geometry::model::d2; 4 | #include 5 | 6 | int main(){ 7 | point_xy p1(1.0,2.0), p2(3.0,4.0); 8 | float d = boost::geometry::distance(p1,p2); 9 | std::cout << "The distance between points is: " << d << std::endl; 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /chp06/python/ledflash.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python3 2 | import wiringpi2 as wpi 3 | from time import sleep 4 | 5 | print("Starting the Python wiringPi example") 6 | wpi.wiringPiSetupGpio() 7 | wpi.pinMode(17,1) 8 | wpi.pinMode(27,0) 9 | while wpi.digitalRead(27)==0: 10 | wpi.digitalWrite(17,1) 11 | sleep(0.1) 12 | wpi.digitalWrite(17,0) 13 | sleep(0.1) 14 | print("Button pressed: end of example") 15 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/websocket-stream/node_modules/ws/lib/Validation.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * ws: a node.js websocket client 5 | * Copyright(c) 2011 Einar Otto Stangvik 6 | * MIT Licensed 7 | */ 8 | 9 | try { 10 | module.exports = require('utf-8-validate'); 11 | } catch (e) { 12 | module.exports = require('./Validation.fallback'); 13 | } 14 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/mkdirp/node_modules/minimist/test/parse_modified.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('parse with modifier functions' , function (t) { 5 | t.plan(1); 6 | 7 | var argv = parse([ '-b', '123' ], { boolean: 'b' }); 8 | t.deepEqual(argv, { b: true, _: ['123'] }); 9 | }); 10 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/node_modules/is-property/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | *.gz 9 | 10 | pids 11 | logs 12 | results 13 | 14 | npm-debug.log 15 | node_modules/* 16 | *.DS_Store 17 | test/* -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | complexity.md 19 | -------------------------------------------------------------------------------- /chp15/v4l2/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "Video for RPi Video Applications - derekmolloy.ie" 4 | 5 | echo "Building the Video4Linux frame capture program" 6 | gcc -O2 -Wall `pkg-config --cflags --libs libv4l2` grabber.c -o grabber 7 | 8 | echo "Building the Video4Linux capture example program" 9 | gcc -O2 -Wall `pkg-config --cflags --libs libv4l2` capture.c -o capture 10 | 11 | echo "Finished" 12 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/lib/reinstall.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | module.exports = exports = rebuild; 4 | 5 | exports.usage = 'Runs "clean" and "install" at once'; 6 | 7 | function rebuild (gyp, argv, callback) { 8 | gyp.todo.unshift( 9 | { name: 'clean', args: [] }, 10 | { name: 'install', args: [] } 11 | ); 12 | process.nextTick(callback); 13 | } 14 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/commander/node_modules/graceful-readlink/index.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs') 2 | , lstat = fs.lstatSync; 3 | 4 | exports.readlinkSync = function (p) { 5 | if (lstat(p).isSymbolicLink()) { 6 | return fs.readlinkSync(p); 7 | } else { 8 | return p; 9 | } 10 | }; 11 | 12 | 13 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/cryptiles/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | 19 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/build/Release/.deps/Release/obj.target/serialport.node.d: -------------------------------------------------------------------------------- 1 | cmd_Release/obj.target/serialport.node := g++ -shared -pthread -rdynamic -Wl,-soname=serialport.node -o Release/obj.target/serialport.node -Wl,--start-group Release/obj.target/serialport/src/serialport.o Release/obj.target/serialport/src/serialport_unix.o Release/obj.target/serialport/src/serialport_poller.o -Wl,--end-group 2 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/lib/rebuild.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | module.exports = exports = rebuild; 4 | 5 | exports.usage = 'Runs "clean" and "build" at once'; 6 | 7 | function rebuild (gyp, argv, callback) { 8 | gyp.todo.unshift( 9 | { name: 'clean', args: [] }, 10 | { name: 'build', args: ['rebuild'] } 11 | ); 12 | process.nextTick(callback); 13 | } 14 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | components 7 | build 8 | results.tap 9 | results.xml 10 | npm-shrinkwrap.json 11 | config.json 12 | .DS_Store 13 | */.DS_Store 14 | */*/.DS_Store 15 | ._* 16 | */._* 17 | */*/._* 18 | coverage.* 19 | lib-cov 20 | 21 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/test/zz-cleanup.js: -------------------------------------------------------------------------------- 1 | var tap = require("tap") 2 | , rimraf = require("rimraf") 3 | , path = require("path") 4 | 5 | tap.test("remove fixtures", function (t) { 6 | rimraf(path.resolve(__dirname, "fixtures"), function (er) { 7 | t.ifError(er, "remove fixtures") 8 | t.end() 9 | }) 10 | }) 11 | -------------------------------------------------------------------------------- /chp12/thermal/plot: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Plotting the CPU Temperature to file" 3 | gnuplot <<_EOF_ 4 | set term postscript enhanced color 5 | set output 'plot.ps' 6 | set title 'Exploring RPi CPU Temperature Plot' 7 | plot 'data_no_heatsink' with linespoints lc rgb 'blue', \ 8 | 'data_with_heatsink' with linespoints lc rgb 'red' 9 | _EOF_ 10 | echo "Converting the PS file to a PDF file" 11 | ps2pdf plot.ps plot.pdf 12 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/xtend/mutable.js: -------------------------------------------------------------------------------- 1 | module.exports = extend 2 | 3 | function extend(target) { 4 | for (var i = 1; i < arguments.length; i++) { 5 | var source = arguments[i] 6 | 7 | for (var key in source) { 8 | if (source.hasOwnProperty(key)) { 9 | target[key] = source[key] 10 | } 11 | } 12 | } 13 | 14 | return target 15 | } 16 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/test/test.js: -------------------------------------------------------------------------------- 1 | require('./basic-test') 2 | 3 | if (!process.env.SAUCE_KEY || !process.env.SAUCE_USER) 4 | return console.log('SAUCE_KEY and/or SAUCE_USER not set, not running sauce tests') 5 | 6 | if (!/v0\.10/.test(process.version)) 7 | return console.log('Not Node v0.10.x, not running sauce tests') 8 | 9 | require('./sauce.js') -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/bin/serialportList.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var serialport = require('../'); 4 | var sf = require('sf'); 5 | 6 | serialport.list(function (err, results) { 7 | if (err) { 8 | throw err; 9 | } 10 | 11 | for (var i = 0; i < results.length; i++) { 12 | var item = results[i]; 13 | console.log(sf('{comName,-15} {pnpId,-20} {manufacturer}', item)); 14 | } 15 | }); 16 | -------------------------------------------------------------------------------- /chp05/overview/build: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | g++ cppstrings.cpp -o cppstrings 3 | gcc cstrings.c -o cstrings 4 | gcc helloworld.c -o helloworldc 5 | g++ helloworld.cpp -o helloworldcpp 6 | gcc operators.c -o operators 7 | g++ passing.cpp -o passing 8 | gcc pointerarray.c -o pointerarray 9 | gcc pointers.c -o pointers 10 | gcc short.c -o shortc 11 | g++ short.cpp -o shortcpp 12 | gcc sizeofvariables.c -o sizeofvariables 13 | gcc void.c -o void 14 | -------------------------------------------------------------------------------- /chp05/overview/operators.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(){ 4 | int a=1, b=2, c, d, e, g; 5 | float f=9.9999; 6 | c = ++a; 7 | printf("The value of c=%d and a=%d.\n", c, a); 8 | d = b++; 9 | printf("The value of d=%d and b=%d.\n", d, b); 10 | e = (int) f; 11 | printf("The value of f=%.2f and e=%d.\n", f, e); 12 | g = 'A'; 13 | printf("The value of g=%d and g=%c.\n", g, g); 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/arduinoTest/arduinoEcho/arduinoEcho.ino: -------------------------------------------------------------------------------- 1 | const int ledPin = 11; 2 | 3 | void setup() { 4 | pinMode(ledPin, OUTPUT); 5 | Serial.begin(9600); 6 | Serial.write("READY"); 7 | } 8 | 9 | void loop() { 10 | 11 | while (Serial.available()) { 12 | digitalWrite(ledPin, HIGH); 13 | Serial.write(Serial.read()); 14 | } 15 | 16 | delay(100); 17 | digitalWrite(ledPin, LOW); 18 | } 19 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/lib/schemas/pageTimings.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "properties": { 4 | "onContentLoad": { 5 | "type": "number", 6 | "min": -1 7 | }, 8 | "onLoad": { 9 | "type": "number", 10 | "min": -1 11 | }, 12 | "comment": { 13 | "type": "string" 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/test.js: -------------------------------------------------------------------------------- 1 | var tape = require('tape') 2 | var gen = require('./') 3 | 4 | tape('valid', function(t) { 5 | t.same(gen('a', 'b'), 'a.b') 6 | t.end() 7 | }) 8 | 9 | tape('invalid', function(t) { 10 | t.same(gen('a', '-b'), 'a["-b"]') 11 | t.end() 12 | }) -------------------------------------------------------------------------------- /chp09/bcm2835/plot: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Capturing 2000 samples from the memory and dumping to capture.dat" 3 | sudo ./adc > capture.dat 4 | echo "Plotting the data to a PS file" 5 | gnuplot <<_EOF_ 6 | set term postscript enhanced color 7 | set output 'plot.ps' 8 | set title 'Exploring RPi Plot' 9 | plot 'capture.dat' with linespoints lc rgb 'blue' 10 | _EOF_ 11 | echo "Converting the PS file to a PDF file" 12 | ps2pdf plot.ps plot.pdf 13 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/examples/client/simple-both.js: -------------------------------------------------------------------------------- 1 | var mqtt = require('../..') 2 | , host = '192.168.1.100' // or localhost 3 | , client = mqtt.connect(); 4 | // or , client = mqtt.connect({ port: 1883, host: host, keepalive: 10000}); 5 | 6 | client.subscribe('presence'); 7 | client.publish('presence', 'bin hier'); 8 | client.on('message', function (topic, message) { 9 | console.log(message); 10 | }); 11 | client.end(); 12 | -------------------------------------------------------------------------------- /chp12/paho/node_modules/mqtt/node_modules/concat-stream/node_modules/readable-stream/node_modules/process-nextick-args/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = nextTick; 3 | 4 | function nextTick(fn) { 5 | var args = new Array(arguments.length - 1); 6 | var i = 0; 7 | while (i < args.length) { 8 | args[i++] = arguments[i]; 9 | } 10 | process.nextTick(function afterTick() { 11 | fn.apply(null, args); 12 | }); 13 | } 14 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/lib/schemas/record.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "required": [ 4 | "name", 5 | "value" 6 | ], 7 | "properties": { 8 | "name": { 9 | "type": "string" 10 | }, 11 | "value": { 12 | "type": "string" 13 | }, 14 | "comment": { 15 | "type": "string" 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/errors.js: -------------------------------------------------------------------------------- 1 | // Copyright 2011 Mark Cavage All rights reserved. 2 | 3 | 4 | module.exports = { 5 | 6 | newInvalidAsn1Error: function(msg) { 7 | var e = new Error(); 8 | e.name = 'InvalidAsn1Error'; 9 | e.message = msg || ''; 10 | return e; 11 | } 12 | 13 | }; 14 | -------------------------------------------------------------------------------- /chp05/python2_C/test.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python2 2 | # A Python program that calls C program code 3 | 4 | import ERPiModule 5 | 6 | print("*** Start of the Python program") 7 | print("--> Calling the C hello() function passing Derek") 8 | ERPiModule.hello("Derek") 9 | print("--> Calling the C integrate() function") 10 | val = ERPiModule.integrate(0, 3.14159, 1000000) 11 | print("*** The result is: ", val) 12 | print("*** End of the Python program") 13 | -------------------------------------------------------------------------------- /chp05/python3_C/test.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python3 2 | # A Python program that calls C program code 3 | 4 | import ERPiModule 5 | 6 | print("*** Start of the Python program") 7 | print("--> Calling the C hello() function passing Derek") 8 | ERPiModule.hello("Derek") 9 | print("--> Calling the C integrate() function") 10 | val = ERPiModule.integrate(0, 3.14159, 1000000) 11 | print("*** The result is: ", val) 12 | print("*** End of the Python program") 13 | -------------------------------------------------------------------------------- /chp09/spiADC_MCP3208/plot: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Capturing 200 samples from the memory and dumping to capture.dat" 3 | ./ADCmulti > capture.dat 4 | echo "Plotting the data to a PS file" 5 | gnuplot <<_EOF_ 6 | set term postscript enhanced color 7 | set output 'plot.ps' 8 | set title 'Exploring RPi Plot' 9 | plot 'capture.dat' with linespoints lc rgb 'blue' 10 | _EOF_ 11 | echo "Converting the PS file to a PDF file" 12 | ps2pdf plot.ps plot.pdf 13 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.1.0 / 2014-10-17 3 | ================== 4 | 5 | * adds `.fluent()` to api 6 | 7 | 0.0.3 / 2014-01-13 8 | ================== 9 | 10 | * fix receiver for .method() 11 | 12 | 0.0.2 / 2014-01-13 13 | ================== 14 | 15 | * Object.defineProperty() sucks 16 | * Initial commit 17 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/lib/schemas/creator.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "required": [ 4 | "name", 5 | "version" 6 | ], 7 | "properties": { 8 | "name": { 9 | "type": "string" 10 | }, 11 | "version": { 12 | "type": "string" 13 | }, 14 | "comment": { 15 | "type": "string" 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/escape-string-regexp/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; 4 | 5 | module.exports = function (str) { 6 | if (typeof str !== 'string') { 7 | throw new TypeError('Expected a string'); 8 | } 9 | 10 | return str.replace(matchOperatorsRe, '\\$&'); 11 | }; 12 | -------------------------------------------------------------------------------- /chp13/xbee/nodejs/node_modules/serialport/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/tar/examples/packer.js: -------------------------------------------------------------------------------- 1 | var tar = require("../tar.js") 2 | , fstream = require("fstream") 3 | , fs = require("fs") 4 | 5 | var dir_destination = fs.createWriteStream('dir.tar') 6 | 7 | // This must be a "directory" 8 | fstream.Reader({ path: __dirname, type: "Directory" }) 9 | .pipe(tar.Pack({ noProprietary: true })) 10 | .pipe(dir_destination) --------------------------------------------------------------------------------