Difference between revisions of "Arduino: Menambahkan Library"

From OnnoWiki
Jump to navigation Jump to search
Line 7: Line 7:
 
  # TM1650
 
  # TM1650
 
  cd ~/Arduino/libraries/
 
  cd ~/Arduino/libraries/
 +
rm *zip
 
  wget http://downloads.arduino.cc/libraries/github.com/arkhipenko/TM1650-1.1.0.zip
 
  wget http://downloads.arduino.cc/libraries/github.com/arkhipenko/TM1650-1.1.0.zip
 
  unzip TM1650-1.1.0.zip
 
  unzip TM1650-1.1.0.zip
  
  cp *zip /usr/share/arduino/libraries/
+
  # time
  cd /usr/share/arduino/libraries/
+
  cd ~/Arduino/libraries/
  unzip DateTime.zip
+
  rm *zip
 
+
  wget https://github.com/PaulStoffregen/Time/archive/master.zip
  cp Time-master.zip /usr/share/arduino/libraries/
+
  unzip master.zip
cd /usr/share/arduino/libraries/
 
  unzip Time-master.zip
 
mv Time-master Time 
 
  
 
  # DS1302RC
 
  # DS1302RC
 
  cd ~/Arduino/libraries/
 
  cd ~/Arduino/libraries/
 +
rm *zip
 
  wget https://playground.arduino.cc/uploads/Main/DS1302RTC/index.zip
 
  wget https://playground.arduino.cc/uploads/Main/DS1302RTC/index.zip
 
  unzip index.zip
 
  unzip index.zip
Line 26: Line 25:
 
  # DS1307RTC
 
  # DS1307RTC
 
  cd ~/Arduino/libraries/
 
  cd ~/Arduino/libraries/
 +
rm *zip
 
  wget http://downloads.arduino.cc/libraries/github.com/PaulStoffregen/DS1307RTC-1.4.1.zip
 
  wget http://downloads.arduino.cc/libraries/github.com/PaulStoffregen/DS1307RTC-1.4.1.zip
 
  unzip DS1307RTC-1.4.1.zip
 
  unzip DS1307RTC-1.4.1.zip
Line 36: Line 36:
 
  # RTClib
 
  # RTClib
 
  cd ~/Arduino/libraries/
 
  cd ~/Arduino/libraries/
 +
rm *zip
 
  wget http://downloads.arduino.cc/libraries/github.com/adafruit/RTClib-1.8.0.zip
 
  wget http://downloads.arduino.cc/libraries/github.com/adafruit/RTClib-1.8.0.zip
 
  unzip RTClib-1.8.0.zip  
 
  unzip RTClib-1.8.0.zip  
Line 41: Line 42:
 
  # PubSubClient untuk bisa MQTT
 
  # PubSubClient untuk bisa MQTT
 
  cd ~/Arduino/libraries/
 
  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
Line 47: Line 49:
 
  # Download https://github.com/miguelbalboa/rfid/archive/master.zip
 
  # Download https://github.com/miguelbalboa/rfid/archive/master.zip
 
  cd ~/Arduino/libraries/
 
  cd ~/Arduino/libraries/
 +
rm *zip
 
  wget http://downloads.arduino.cc/libraries/github.com/miguelbalboa/MFRC522-1.4.0.zip
 
  wget http://downloads.arduino.cc/libraries/github.com/miguelbalboa/MFRC522-1.4.0.zip
 
  unzip MFRC522-1.4.0.zip
 
  unzip MFRC522-1.4.0.zip

Revision as of 07:53, 29 May 2020

Tambahkan ke

/usr/share/arduino/libraries

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