Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

Write Examples for official Libraries - Practical Approach #98

Closed
Inv3nt0r1 opened this issue Mar 18, 2020 · 9 comments
Closed

Write Examples for official Libraries - Practical Approach #98

Inv3nt0r1 opened this issue Mar 18, 2020 · 9 comments
Labels

Comments

@Inv3nt0r1
Copy link

Idea - Writing Examples for Official Libraries

Hello,

My name is Durgesh Pachghare, a Computer Engineering Undergraduate from India. Arduino was the thing from which I started my learning and experiments in Robotics. I have 5 years of experience working with various Arduino boards, a large variety of sensors and actuators. I lead the robotics club in my college and I am a Technical Lead of Robotics Teams which makes complex robots for various robotics competitions. I have proficiency in Arduino, C, C++, and Java Programming Languages.

Motivation

Arduino is a member of my daily experiments. I learned Arduino completely from the examples of Libraries present in the IDE and using that I used to write my own programs and try it. After practicing, I was able to write advance level code with Arduino integrating multiple sensors, actuators, and various devices. Examples play a very important role in learning Arduino and trying new things. So, I want to make contributions that will be really helpful for the entire community of makers.

Practical Approach

My approach aims at providing many examples and examples integrating multiple components. Many projects require integration of multiple components, so if we give examples in that approach, more people will understand and will try given examples and learn more. A detailed explanation will be in the Proposal.

I will update this thread once I submit my draft.

Thank you.
Regards,
Durgesh.

@Inv3nt0r1
Copy link
Author

Inv3nt0r1 commented Mar 19, 2020

@alranel
Copy link
Member

alranel commented Mar 23, 2020

Welcome @Inv3nt0r1. Make sure you read the application guide in this repository which explains how to write a good project proposal.

@Inv3nt0r1
Copy link
Author

Inv3nt0r1 commented Mar 23, 2020

Thank you so much for the reply.
I am working on Proposal, I will submit it for review tomorrow.
I am ensuring it to be as detailed as possible.

@Inv3nt0r1
Copy link
Author

Inv3nt0r1 commented Mar 26, 2020

Hello @alranel @per1234,
I have submitted my draft on the GSOC portal. Kindly review it and tell me changes/suggestions/additions if any.
Thank you.

@Inv3nt0r1
Copy link
Author

Is there any specific reason why the Arduino IDE has more examples than the actual library Repo?

@per1234

@per1234
Copy link
Collaborator

per1234 commented Mar 29, 2020

Would you mind providing some more details @Inv3nt0r1. Which library repo are you referring to? What is the exact menu path in the Arduino IDE where you are seeing the additional examples?

@Inv3nt0r1
Copy link
Author

I apologize for not giving full details.

For example, Keyboard Library have only 1 example in Github Repository i.e. Seria.ino.

But in IDE, under File > Examples > USB > Keyboard, there are 4 examples listed namely

  • KeyboardLogout
  • KeyboardMessage
  • KeyboardReprogram
  • KeyboardSerial

Also, the reference link of Keyboard Library has a description of all the examples listed in IDE.

Same is with Mouse Library which does not contain any example at all in Github Repo, but it got 2 examples in the same path in Arduino IDE.

@per1234
Copy link
Collaborator

per1234 commented Mar 29, 2020

Those examples are bundled with the Arduino IDE:
https://github.com/arduino/Arduino/tree/master/build/shared/examples/09.USB

I think the reason is because years ago the Keyboard and Mouse libraries were part of the core library. When they were made into separate libraries, the examples were left in their original location.

There are proposals to move those examples to the library repositories:

@Inv3nt0r1
Copy link
Author

Those examples are bundled with the Arduino IDE:
https://github.com/arduino/Arduino/tree/master/build/shared/examples/09.USB

I think the reason is because years ago the Keyboard and Mouse libraries were part of the core library. When they were made into separate libraries, the examples were left in their original location.

There are proposals to move those examples to the library repositories:

Okay, got it. Thank you so much for your reply.

@alranel alranel closed this as completed Feb 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants