Arduino Libraries
Arduino 函式庫列表
Arduino是建立在C++ 的基礎上,但是跟純C++ 的不同在於輸出介面的不同,另一方面,函式庫的容量也不同,因為Arduino是電腦的控制和模組的控制與讀取之間的橋樑,有很多東西用機器語言直接做編輯的話會很不人性,所以有許多大神會把讀取與輸出的函式先做統整並做成.h標頭檔,Arduino的一個特點就是他有過度豐富的擴充函式資源,無論是自家的或是Github上,基本上只要是你想的到的模組或是IC,十之八九都已經有人寫好函式庫了。
功能
大多數的函式庫都是為了解決Arduino和電腦間的通訊以及訊號的讀取問題,(詳細的方法及位址或是機器碼的使用請自行Google,另一方面是要建立較容易理解和使用的函式集成,讓大家可以輕易地讀懂函數或是程式的意義並進行編寫,不然一個寫好的函式可能就需要數十行甚至上百行的程式才能替代(如果你是某Konchin電神那我也沒辦法),一般常見的函式有< SPI.h><SoftwareSerial.h><math.h>…,這些都能幫我們省下大把的時間來處理通訊的問題和增進編輯的便利性。
使用方式
- 一般來說,Arduino預設可擴充的函式會放在草稿碼>>匯入程式庫>>管理程式庫,接下來只要搜尋你要的並安裝就行了,這是最常見也最簡單的方式
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- 想當然,內建的東西不一定能滿足你,所以你會需要外掛函式,這時候就會需要Google或是去Arduino list找你需要的程式,接下來你需要把它放進ArduinoIDE讀的到的地方,最常見的方式是先下載Zip檔,接著直接用IDE加入,他就會放進預設的位置,並且IDE會自動抓取它的內建範例檔
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- 如果有需要更進一步了解函數背後的各項數值的定義,可以到Arduino\libraries下面去找對應的函式庫資料夾,裡面會有.h標頭檔、使用說明及c++建置檔
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →