This video shows how to use ChatGPT to implement Observer Pattern code in Arduino.
The content includes:
Install C++ STL for Arduino
Use ChatGPT to implement Observer Pattern C++code with Arduino
Verify the generated code in Arduino IDE
本視頻在說明如何使用ChatGPT在Arduino中實現觀察者模式的程式碼。
內容如下
安裝Arduino的C++標準函式庫
使用ChatGPT實現觀察者模式的Arduino C++程式碼
使用Arduino IDE驗證程式碼是否可執行
文章作者: Jack
版權聲明: 本部落格所有文章除特別聲明外,均採用CC BY-NC-SA 4.0 授權協議。轉載請註明來源 X Workshop|量測自動化 × 嵌入式 × AI 開發實戰!
相關推薦
2017-04-09
如何輸入已寫好的函式庫(資料夾或ZIP)到Arduino函示庫中
由於網路上有很多寫好的Arduino函式庫,大部分都是用成ZIP下載, 我查了一些關於如何撰寫的資料,如果有興趣可以試著寫看看: https://yehnan.blogspot.tw/2013/01/arduino.html Arduino Style Guide for Writing Libraries https://www.arduino.cc/en/Reference/APIStyleGuide Writing a Library for Arduino https://www.arduino.cc/en/Hacking/LibraryTutorial How to write libraries for the Arduino? https://playground.arduino.cc/Code/Library 這一篇是簡單的筆記,說明如何將網路上下載的函示庫與範例輸入到Arduino的函示庫中, Step 1. 在草稿碼–>Include Library –> Add .ZIP Library… Step 2. 選擇想要輸入的函示庫資料夾...
2014-12-08
[Arduino教學] Lilypad Arduino USB 開箱
今天拿到Lilypad Arduino USB的板子了, Lilypad Arduino USB維持本來的小體積,使用了ATmega32U4,可直接以USB連接PC,不需要再另接外接卡, 詳細的資料可以參考網站LilyPad Arduino USB - ATmega32U4 Board: https://www.sparkfun.com/products/12049 至於我拿到的板子,我拍了幾張照, 與50N硬幣比較大小 正面照 背面照 一開始用USB線接PC時會找不到Driver, 於是使用Google大神search ATmega32U4的Driver,請連結以下網址, Arduino Pro Micro Board, 3.3V / 8MHz, ATmega32U4, micro-USB Porthttps://microcontrollershop.com/product_info.php?products_id=5625 下載window driver並安裝, 安裝完畢,出現SpackFun Pro Micro的連接埠, ...
2021-11-28
[Note 2] Software Debugger Library for Arduino IDE 在Arduino開發環境中的軟體偵錯程式庫
This video shows the test procedure of the software debugger used in the Arduino IDE. 本視頻展示一個軟體偵錯器在Arduino開發環境中的測試過程。 This debugger provides set/clean break point and display data in the serial monitor. 這個偵錯器可以提供設定/清除中斷點,以及將資料顯示在序列埠視窗中。 Links below will help you understand this debugger in more detail. 以下連結可以幫助您更好瞭藉這個偵錯器: 1. https://www.arduino.cc/reference/en/libraries/debugger/ 2. https://github.com/jspayneco/Debugger
2015-03-15
感測器(五) 使用Arduino Mega2560作SD卡的資料紀錄(Datalogger)
與前篇文章一樣,SD卡不是感測器,但因是在同一類主題中討論,故列入。 用Mega2560試了SD Datalogger好幾次,今天終於成功, 網路上的討論很多,我列出我是成功的參數: 首先根據註解: 1234// On the Ethernet Shield, CS is pin 4. Note that even if it's not// used as the CS pin, the hardware CS pin (10 on most Arduino boards,// 53 on the Mega) must be left as an output or the SD library// functions will not work. 也就是說const int chipSelect = 53; –> For Mega2560 再來根據Sd2PinMap.h中關於Mega2560腳位的定義, 123456789101112#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega25...
2020-05-24
[Arduino][VS Code][Voice] Edit Arduino code in the VS code/在VS Code中編輯Arduino程式碼
123456789101112131415This example shows how to install Arduino extension and edit Arduino code in the VS code.這個範例說明如何在VS Code中安裝Arduino extension以及編輯Arduino程式碼。 1. Install Arduino extension in the VS code.在VS code中安裝Arduino extension。2. Set Arduino installation Path.設定 Arduino的安裝路徑。3. Ctrl+Shift+P to input command " Arduino: Examples".使用 Ctrl+Shift+P去輸入"Arduino: Examples"指令。4. Open Blinky example 打開Blink的範例5. Select COM port and board type "Mega2560".選擇COM port...
2014-12-16
[Arduino與LabVIEW連結] 使用LabVIEW控制Mega 2560 數位輸出範例說明
這篇文章,我們將介紹如何在LabVIEW中使用LINX-LVH的VI與MEga 2560 PCB Board作通訊, 達成數位輸出的LED On和Off控制。 再開始之前請確定安裝好LINX-LVH,如果安裝完成,到資料夾: C:\Program Files\National Instruments\LabVIEW 2012\vi.lib\LabVIEW Hacker\LINX\Firmware\Source\Arduino\LINX_Arduino_Base_Firmware 執行LINX_Arduino_Base_Firmware.ino, 選擇Tool–>Board–>Mega 2560 選擇Tool–>Serial Port–>COM8 接著File–>Upload將程式上傳到Mega 2560上, 接著回到C:\Program Files\National Instruments\LabVIEW 2012\vi.lib\LabVIEW Hacker\LINX 執行LVH-LINX.lvproj 點選Blink(simple)....
公告
本站文章自痞客邦(2006–2024)搬家而來,舊文章的程式碼與圖片如有缺漏,歡迎留言告知。