Video: Writing an Arduino driver with OpenAI ChatGPT and PDF parsing – September 2023
OpenAI’s ChatGPT appears to have been trained on a lot of Adafruit’s 10+ years of open-source code. We’ve recently experimented with using ChatGPT for Arduino (C/C++) library and driver authoring in conjunction with Limor “Ladyada” the primary author.
Much like our editorial guidelines adafruit.com/editorialstandards, if we use any AI or generative tools, including ChatGPT we’ll disclose that in a comment and provide the link to the service or tool used and, when used for published code, and when possible, we’ll share the exact chat logs used (OpenAI ChatGPT). Limor does not use GitHub Copilot at this time for published open-source code.
We believe disclosing use, linking to the LLM, and prompt/chat logs together is one of the most transparent ways to document anything done with these tools as they evolve and are experimented with. We additionally have published videos of our use and entire logs of interactions.
The first published open-source code example is the Adafruit HUSB238 I2C USB Power Delivery sink chip – github.com/adafruit/Adafruit_HUSB238
The GitHub repository contains the code and the addition of this information in the MIT License for the open-source code.
Written by Limor Fried (Adafruit Industries) with OpenAI ChatGPT v4 Aug 3rd, 2023 build
https://help.openai.com/en/articles/6825453-chatgpt-release-noteshttps://chat.openai.com/share/d05c963d-b610-4eef-ad98-05656a33e118
https://chat.openai.com/share/a276ce74-f810-4dba-a324-e9fd1545085f
We are seeking input from the open-source community, open-source organizations such as OSI & OSHWA, and legal experts on best practices as these tools become available. How should developers in open-source code & in the licenses indicate using GitHub Copilot-like tools, “AI pair programmers”, and/or ChatGPT? We’ll share our findings and show our work along the way.
Related:
- Artificial Intelligence and Copyright. A Notice by the Copyright Office, Library of Congress on 08/30/2023.
- Microsoft announces new Copilot Copyright Commitment for customers.
- AI-generated art cannot receive copyrights, US court says (PDF).
- OpenAI disputes authors’ claims that every ChatGPT response is a derivative work (PDF).
- Putting AI in the Driver’s Seat. Adafruit has been experimenting with using AI to write the Arduino drivers that make their sensors, LEDs, and everything else easy to use.
- ChatGPT Creates Arduino Drivers in the Style of Adafruit’s Ladyada.