Difference between revisions of "Arduino: Menambahkan Library"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 38: | Line 38: | ||
# | # | ||
wget https://github.com/knolleary/pubsubclient/archive/master.zip | wget https://github.com/knolleary/pubsubclient/archive/master.zip | ||
− | unzip master.zip | + | unzip pubsubclient-master.zip |
mv pubsubclient-master pubsubclient | mv pubsubclient-master pubsubclient | ||
mv pubsubclient/src/* pubsubclient | mv pubsubclient/src/* pubsubclient | ||
− | + | cp -Rf pubsubclient /usr/share/arduino/libraries | |
− | chmod -Rf root /usr/share/arduino/libraries | + | cp -Rf pubsubclient arduino-1.8.5/libraries/ |
+ | # chmod -Rf root /usr/share/arduino/libraries | ||
# MFRC522 RFID | # MFRC522 RFID | ||
Line 50: | Line 51: | ||
mv rfid-master rfid | mv rfid-master rfid | ||
mv rfid/src/* rfid/ | mv rfid/src/* rfid/ | ||
− | + | # cp -Rf rfid /usr/share/arduino/libraries/ | |
− | chown -Rf root: /usr/share/arduino/libraries/ | + | cp -Rf rfid arduino-1.8.5/libraries/ |
+ | # chown -Rf root: /usr/share/arduino/libraries/ |
Revision as of 19:51, 10 May 2018
Tambahkan ke
/usr/share/arduino/libraries
Misalnya
cp *zip /usr/share/arduino/libraries/ cd /usr/share/arduino/libraries/ unzip DateTime.zip
cp Time-master.zip /usr/share/arduino/libraries/ cd /usr/share/arduino/libraries/ unzip Time-master.zip mv Time-master Time
cp DS1302RTC.zip /usr/share/arduino/libraries cd /usr/share/arduino/libraries/ unzip DS1302RTC.zip
cp DS1307RTC-master.zip /usr/share/arduino/libraries cd /usr/share/arduino/libraries/ unzip DS1307RTC-master.zip mv DS1307RTC-master DS1307RTC
cp TMRpcm-master.zip /usr/share/arduino/libraries/ cd /usr/share/arduino/libraries/ unzip TMRpcm-master.zip mv TMRpcm-master TMRpcm
cd ~/Downloads unzip RTClib-master.zip mv RTClib-master RTClib mv RTClib /usr/share/arduino/libraries/
# PubSubClient untuk bisa MQTT # wget https://github.com/knolleary/pubsubclient/archive/master.zip unzip pubsubclient-master.zip mv pubsubclient-master pubsubclient mv pubsubclient/src/* pubsubclient cp -Rf pubsubclient /usr/share/arduino/libraries cp -Rf pubsubclient arduino-1.8.5/libraries/ # chmod -Rf root /usr/share/arduino/libraries
# MFRC522 RFID # Download https://github.com/miguelbalboa/rfid/archive/master.zip cd ~/Downloads unzip rfid-master.zip mv rfid-master rfid mv rfid/src/* rfid/ # cp -Rf rfid /usr/share/arduino/libraries/ cp -Rf rfid arduino-1.8.5/libraries/ # chown -Rf root: /usr/share/arduino/libraries/