Interactive Smart Mirror
Contributors:
Shawn Hymel
Install UPM Modules
Flash and Configure the Edison
If this is your first time using the Edison, it is recommended that you update to the latest firmware and connect to WiFi.
Build MRAA
MRAA is Intel's set of libraries used to control the low-level hardware. Because UPM relies on MRAA, we need to install it first.
Connect to the Edison over a Serial Terminal or SSH. Once logged in, enter the following commands to download MRAA:
wget https://github.com/intel-iot-devkit/mraa/archive/master.zip unzip master.zip mv mraa-master mraa
Then, build MRAA with:
cd mraa mkdir build cd build cmake .. make
Install the newly built libraries, and update the pkg-config path, which is needed by UPM.
make install export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
Build ili9341 and apds9960 in UPM
Next, we need to download a custom version of UPM and install the ili9341 and apds9960 modules.
NOTE: The APDS-9960 module in this branch of UPM is very experimental and thus quite buggy. If I can get it to be stable, I might request it to be merged with Intel's UPM library.
cd ~ wget https://github.com/ShawnHymel/upm/archive/smartmirror.zip unzip smartmirror.zip mv upm-smartmirror upm
Prepare to build:
cd upm mkdir build cd build cmake ..
Build and install the ili9341 module:
make ili9341 cd src/ili9341 make install
Build and install the apds9960 module:
cd ../.. make apds9960 cd src/apds9960 make install