Difference between revisions of "Arduino: Menambahkan Library"

From OnnoWiki
Jump to navigation Jump to search
Line 4: Line 4:
  
 
Misalnya
 
Misalnya
 +
  
 
  cp *zip /usr/share/arduino/libraries/
 
  cp *zip /usr/share/arduino/libraries/
Line 22: Line 23:
 
  unzip DS1307RTC-master.zip
 
  unzip DS1307RTC-master.zip
 
  mv DS1307RTC-master DS1307RTC
 
  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
 
  cd ~/Downloads

Revision as of 06:12, 1 January 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 master.zip
mv pubsubclient-master pubsubclient
mv pubsubclient/src/* pubsubclient
mv pubsubclient /usr/share/arduino/libraries/