Lucebra
Lucebra Бизнес
IT және бағдарламалық қамтамасыз ету/Басқа АТ және бағдарламалық қамтамасыз ету

构建你自己的Arduino库:逐步指南

通过使用Arduino自动化和简化任务,将专业Arduino编程提升到新的水平

Барлық деңгейлер • 16 Дәрістер • Өмір бойы қол жеткізу
Educational Engineering Team

Тексерілген шебер нұсқаушы

构建你自己的Arduino库:逐步指南
ТРЕЙЛЕР
Нұсқаушымен танысыңыз: Educational Engineering Team

19 ms

5.0 / 5.0
Жаһандық рейтинг
1
Белсенді студенттер
Ағылшын тілі (Америка Құрама Штаттары)
99 Тілдер субтитрлері
2 сағ 8 мин
Жалпы мазмұн

Сіз не үйренесіз

掌握使用库来整理代码的Arduino编程
学习如何制作库并发布给所有人使用
了解使用库的主要好处
移动你的Arduino库

Курстың мазмұны

7 бөлімдер • 16 дәрістер • 02:08:35 жалпы ұзындығы

Introduction

02:23

Educational Engineering Team - Who we are?

05:46

What is A Library.

05:47

Arduino Libraries

Libraries are files written in Cor C++ (.c, .cpp) which provide your sketches with extra functionality (e.g. the ability to control an LED matrix, or read an encoder, etc.). They were introduced in Arduino 0004.


To use an existing library in a sketch simply go to the Sketch menu, choose "Import Library", and pick from the libraries available. This will insert an #include statement at the top of the sketch for each header (.h) file in the library's folder. These statements make the public functions and constants defined by the library available to your sketch. They also signal the Arduino environment to link that library's code with your sketch when it is compiled or uploaded.


User-created libraries as of version 0017 go in a subdirectory of your default sketch directory. For example, on OSX, thenew directory would be ~/Documents/Arduino/libraries/. On Windows, it would be My Documents\Arduino\libraries\. To add your own library, create a new directory in the libraries directory with the name of your library. The folder should contain a C or C++ file with your code and a header file with your function and variable declarations. It will then appear in the Sketch | Import Library menu in the Arduino IDE.


Note: for users of versions previous to 0017, libraries belong in a subdirectory of the Arduino application directory: ARDUINO/lib/targets/libraries. For version 0017, the libraries directory was moved to make them more convenient to install and use.


Because libraries are uploaded to the board with your sketch, they increase the amount of space used by the ATmega8 on the board. See the FAQ for an explanation of various memory limitations and tips on reducing program size. If a sketch no longer needs a library, simply delete its #include statements from the top of your code. This will stop the Arduino IDE from linking the library with your sketch and decrease the amount of space used on the Arduino board.


To get started writing libraries, download this test library. It should provide a basic template for creating a new library. After you've made changes to your library, in order to get it to recompile, you will have to delete the .o file generated in the library's directory.

Your First Library Creation Steps

03:10

Create the Header File

04:19

Coding the Header File

14:01

Creating the Source File

13:40

Create Keyword File and Readme File

10:27

Create an Example and Use the Library Part1

05:03

Create an Example and Use the Library Part2

03:07

See Your Library in Action

07:58
Апталық оқу жоспары
Оқу жолыңызды жоспарлаңыз
AI сіздің уақытыңызға сай жеке кесте құрады

Талаптар

基本电子学经验

愿意应用,而不仅仅是观看

Мақсатты аудитория

Electronics Geeks

Arduino Geeks

Anyone Interested in Learning New Things about Arduino

Anyone Interested in Learning More about Arduino Libraries

Бұл курс туралы

你是否曾需要使用Arduino来改变或自动化某个任务?是的?那么你是否曾需要将该任务所需的代码简化为一系列易于使用的函数?通过使用Arduino自动化和简化任务,将专业Arduino编程提升到新的水平。


那么这门课程就是为你准备的!你将学习如何制作一个库来初始化和控制一个小型Arduino电路。


你将学到什么:


  • 什么是库
  • 如何编写自己的Arduino库
  • 如何将库添加到你的Arduino项目中
  • 通过逐步指南,学习如何从头开始构建你自己的Arduino库,将Arduino编程提升到新的水平。


为什么你应该选择这门课程:


  • 本课程将教你如何使用Arduino的Sketch编辑器,这是用于编程Arduino板的IDE(集成开发环境)。
  • 学习使用Arduino库来管理代码,以自动化任务和简化编码。
  • 构建自己的代码库,用于常用的草图,包括数字引脚控制、模拟输入控制、PWM定时器控制等。
  • 通过使用库自动化任务,如串行通信控制、SD卡控制、LCD控制、模拟输入控制、数字引脚控制等,节省编程时间。
  • 深入了解Arduino编程语言。


欢迎参加本课程:

你将学习库的实际工作原理,并开始编写自己的库。你还将学习你可以用它们做什么,以及如何使用它们来改进自己的Arduino编码风格。库是用C或C++(.c、.cpp)编写的文件,为你的草图提供额外的功能(例如控制LED矩阵或读取编码器等)。


我相信这门课程将使你的Arduino项目达到新的高度,并为你打开新的可能性。


本课程目标:


  • 通过使用Arduino自动化和简化任务,将专业Arduino编程提升到新的水平。


所需材料:


  • Arduino或Arduino克隆板(freeduino),或你可以制作自己的定制Ardu


Мансап мүмкіндіктері және мақсатты лауазымдар

Тәжірибелік дағдыларды меңгеріп, халықаралық сұранысқа ие лауазымдарға өтініш беріңіз

Мансапқа дайын оқу бағдарламасы
Сіз өтініш бере алатын лауазымдар

Embedded Systems Engineer

IoT Firmware Developer

Automation & SCADA Engineer

PCB & Circuit Layout Designer

Болжамды жылдық жалақы
$85,000 – $135,000 / yr
Жаһандық нарық сұранысы

Top 5% Growing Engineering Segment

Сіз игеретін негізгі дағдылар
Microcontroller Architecture
Hardware-Software Integration
Industrial Protocols & Fieldbus Comms
Schematic & Circuit Diagnostics
* Бағалау халықаралық технологиялық жалақы есептеріне негізделген.
Оқытушыңызбен танысыңыз
Educational Engineering Team
5.0 Рейтинг
99 Студенттер
Profili Görüntüle
Educational Engineering Team
Бас нұсқаушы
Educational Engineering Team is a Leading Team in Microcontroller Industry, with over 13 Years of Experience in Teaching and Doing Practical Projects.

Educational Engineering Team is a group of skilled engineers dedicated to sharing practical knowledge with learners worldwide. Founded by Ashraf Said Al-Madhoun, the team has worked in programming, microcontrollers, electronics, and engineering education since 2007.

Rather than offering superficial explanations, the team breaks down complex topics into clear, step-by-step lessons supported by practical projects and bite-sized videos. This hands-on approach helps learners understand technical concepts and apply them directly to their studies, careers, and personal projects.

Ashraf is a Mechatronics Engineer, educator, author, electronics and programming enthusiast, and maker. As Chief Educational Engineer, he specializes in explaining challenging concepts in a simple, structured, and accessible way. He has extensive teaching experience and has authored four books about microcontrollers.

Educational Engineering Team has created more than 100 online courses covering circuit design, electronics simulation, PCB fabrication, Arduino, PIC microcontrollers, Raspberry Pi, C, Python, PLC programming, industrial automation, 3D design, ESP boards, embedded systems, and the Internet of Things.

In addition to producing courses, bootcamps, articles, and tutorials, the team supports electronics and programming enthusiasts, STEM students, educators, and aspiring engineers. Its members also provide engineering consultation and guidance for student graduation projects, helping learners develop practical skills and prepare for careers in the technology industry.

...
Оқытушының басқа курстары:
Educational Engineering Team

Студенттер де сатып алды

Бұл курсты көрген оқушылар да осы жоғары бағаланған курстарға жазылды

Program ESP32 without Coding
Тегін
Трендте
IT және бағдарламалық қамтамасыз ету | Аппараттық құрал

Program ESP32 Board without writing a single code in A Professional Environment

5.0
2 сағ 30 мин
18 Дәрістер
Барлығы
Using Al to Code: Your Step-by-Step Guide
IT және бағдарламалық қамтамасыз ету | Аппараттық құрал

Revolutionize Your Coding Skills with Al: A Comprehensive Guide for Beginners

5.0
2 сағ
11 Дәрістер
Барлығы
$10.99

$19.99

ISO 27001 Certification Process – A Step-by-Step Guide
IT және бағдарламалық қамтамасыз ету | Ақпараттық қауіпсіздік

Master ISO 27001: Achieve Certification, Build Security, and Ensure Compliance for Your Organization

5.0
1 сағ 30 мин
10 Дәрістер
Бастаушы
$39.99

$54.99

Implement GRC (Governance, Risk, Compliance) Step by Step
IT және бағдарламалық қамтамасыз ету | Басқару, тәуекел және сәйкестік (CGRC) бойынша сертификатталған

Master GRC: Step-by-Step Guide to Implementing Governance, Risk, and Compliance for Business Success

5.0
2 сағ 30 мин
35 Дәрістер
Орташа
$39.99

$64.99

Mastering Arduino Data Streaming to Excel
IT және бағдарламалық қамтамасыз ету | Arduino

Seamlessly Stream and Visualize Real-Time Data from Arduino into Excel with Ease

5.0
1 сағ 30 мин
6 Дәрістер
Барлығы
$9.99

$34.99

Blogger: Make A Professional Website For Free With No Coding
IT және бағдарламалық қамтамасыз ету | Басқа АТ және бағдарламалық қамтамасыз ету

Learn how to create and customize a website with no prior coding experience.

5.0
1 сағ 30 мин
12 Дәрістер
Барлығы
$9.99

$19.99

Frequently Bought Together

Learners who enrolled in this course also frequently purchased these complementary courses together.

7-Day Money Back Guarantee for all bundle items
构建你自己的Arduino库:逐步指南
This course:
Бестселлер
构建你自己的Arduino库:逐步指南
$34.99
Using Al to Code: Your Step-by-Step Guide
Using Al to Code: Your Step-by-Step GuideEducational Engineering Team
$19.99

Total price for selected items:

$87.98

$109.97

🎉 Save 20% when bought together

Жиі қойылатын сұрақтар

Осы курсқа қатысты жиі қойылатын сұрақтарға жауап табыңыз.

Иә! Курстың лекциялары мен тапсырмаларының 100% орындағаннан кейін сіз өзіңіздің расталған цифрлық аяқтау сертификатыңызды тікелей Lucebra профиліңізден жүктеп ала аласыз.

Technology бойынша көбірек біліңіз

Аккредиттелген сертификаттар, электронды кітаптар және тікелей эфирдегі сабақтармен біліміңізді кеңейтіңіз.