Difference between revisions of "Arduino: Menambahkan Library"

From OnnoWiki
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
Tambahkan ke
+
Untuk menambahkan library, bisa ke folder
  
  /usr/share/arduino/libraries
+
  /usr/share/arduino/libraries/
  
Misalnya
+
atau
  
  cp *zip /usr/share/arduino/libraries/
+
  ~/Arduino/libraries/
  cd /usr/share/arduino/libraries/
+
 
  unzip DateTime.zip
+
Download, copy dan extrak library tersebut, misalnya
 +
 
 +
# TM1650
 +
cd ~/Arduino/libraries/
 +
rm *zip
 +
wget http://downloads.arduino.cc/libraries/github.com/arkhipenko/TM1650-1.1.0.zip
 +
unzip TM1650-1.1.0.zip
 +
 
 +
# time
 +
  cd ~/Arduino/libraries/
 +
rm *zip
 +
wget https://github.com/PaulStoffregen/Time/archive/master.zip
 +
  unzip master.zip
  
  cp Time-master.zip /usr/share/arduino/libraries/
+
  # DS1302RC
  cd /usr/share/arduino/libraries/
+
cd ~/Arduino/libraries/
  unzip Time-master.zip
+
  rm *zip
mv Time-master Time 
+
wget https://playground.arduino.cc/uploads/Main/DS1302RTC/index.zip
 +
  unzip index.zip
  
  cp DS1302RTC.zip /usr/share/arduino/libraries
+
  # DS1307RTC
  cd /usr/share/arduino/libraries/
+
cd ~/Arduino/libraries/
  unzip DS1302RTC.zip
+
  rm *zip
 +
wget http://downloads.arduino.cc/libraries/github.com/PaulStoffregen/DS1307RTC-1.4.1.zip
 +
  unzip DS1307RTC-1.4.1.zip
  
  cp DS1307RTC-master.zip /usr/share/arduino/libraries
+
  cp TMRpcm-master.zip /usr/share/arduino/libraries/
 
  cd /usr/share/arduino/libraries/
 
  cd /usr/share/arduino/libraries/
  unzip DS1307RTC-master.zip
+
  unzip TMRpcm-master.zip
  mv DS1307RTC-master DS1307RTC
+
  mv TMRpcm-master TMRpcm
  
  cd ~/Downloads
+
# RTClib
  unzip RTClib-master.zip
+
  cd ~/Arduino/libraries/
  mv RTClib-master RTClib
+
  rm *zip
mv RTClib /usr/share/arduino/libraries/
+
  wget http://downloads.arduino.cc/libraries/github.com/adafruit/RTClib-1.8.0.zip
 +
unzip RTClib-1.8.0.zip
  
 
  # PubSubClient untuk bisa MQTT
 
  # PubSubClient untuk bisa MQTT
  #
+
  cd ~/Arduino/libraries/
 +
rm *zip
 
  wget https://github.com/knolleary/pubsubclient/archive/master.zip
 
  wget https://github.com/knolleary/pubsubclient/archive/master.zip
 
  unzip master.zip
 
  unzip master.zip
  mv pubsubclient-master pubsubclient
+
 
  mv pubsubclient/src/* pubsubclient
+
# MFRC522 RFID
  mv pubsubclient /usr/share/arduino/libraries/
+
  # Download https://github.com/miguelbalboa/rfid/archive/master.zip
 +
  cd ~/Arduino/libraries/
 +
rm *zip
 +
  wget http://downloads.arduino.cc/libraries/github.com/miguelbalboa/MFRC522-1.4.0.zip
 +
unzip MFRC522-1.4.0.zip
 +
 
 +
 
 +
 
 +
==Pranala Menarik==
 +
 
 +
* [[Arduino]]

Latest revision as of 10:28, 7 February 2022

Untuk menambahkan library, bisa ke folder

/usr/share/arduino/libraries/

atau

~/Arduino/libraries/

Download, copy dan extrak library tersebut, misalnya

# TM1650
cd ~/Arduino/libraries/
rm *zip
wget http://downloads.arduino.cc/libraries/github.com/arkhipenko/TM1650-1.1.0.zip
unzip TM1650-1.1.0.zip
# time
cd ~/Arduino/libraries/
rm *zip
wget https://github.com/PaulStoffregen/Time/archive/master.zip
unzip master.zip
# DS1302RC
cd ~/Arduino/libraries/
rm *zip
wget https://playground.arduino.cc/uploads/Main/DS1302RTC/index.zip
unzip index.zip
# DS1307RTC
cd ~/Arduino/libraries/
rm *zip
wget http://downloads.arduino.cc/libraries/github.com/PaulStoffregen/DS1307RTC-1.4.1.zip
unzip DS1307RTC-1.4.1.zip
cp TMRpcm-master.zip /usr/share/arduino/libraries/
cd /usr/share/arduino/libraries/
unzip TMRpcm-master.zip
mv TMRpcm-master TMRpcm
# RTClib
cd ~/Arduino/libraries/
rm *zip
wget http://downloads.arduino.cc/libraries/github.com/adafruit/RTClib-1.8.0.zip
unzip RTClib-1.8.0.zip 
# PubSubClient untuk bisa MQTT
cd ~/Arduino/libraries/
rm *zip
wget https://github.com/knolleary/pubsubclient/archive/master.zip
unzip master.zip
# MFRC522 RFID
# Download https://github.com/miguelbalboa/rfid/archive/master.zip
cd ~/Arduino/libraries/
rm *zip
wget http://downloads.arduino.cc/libraries/github.com/miguelbalboa/MFRC522-1.4.0.zip
unzip MFRC522-1.4.0.zip


Pranala Menarik