https://github.com/danilqa/swp
https://github.com/danilqa/swp
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/danilqa/swp
- Owner: Danilqa
- License: gpl-3.0
- Created: 2017-02-13T17:37:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-13T17:47:42.000Z (over 9 years ago)
- Last Synced: 2025-01-25T07:08:28.559Z (over 1 year ago)
- Language: C++
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: Readme
- License: LICENSE
Awesome Lists containing this project
README
Update mraa and upm:
echo "src mraa-upm http://iotdk.intel.com/repos/3.5/intelgalactic" >
/etc/opkg/mraa-upm.conf
opkg update
opkg install mraa
opkg install upm
Build simple blink on board:
gcc -g blink_onboard.c -o blink_onboard -lmraa
Build simple blink of diod (run ./blink-io "number D2-8":
gcc -g blink-io.c -o blink-io -lmraa
Build simple analog input (connect to A0):
gcc -g analogin_a0.c -o analogin_a0 -lmraa
Build simple digit input and output (connect diod to D4 and button to D2):
gcc -g motion_d.c -o motion_d -lmraa
Build upm 3-axis sensor :
g++ MMA7660FC_Demo.cpp -o MMA7660_demo -lupm-mma7660 -lmraa
-I/usr/include/upm/
Build upm lcd display:
g++ jhd1313m1-lcd.cxx -o LCD_test -lupm-i2clcd -lmraa -I/usr/include/upm/