Arduino library for short introduction training workshops run by Arduino Education. This library is originally made for TinkerKit. It simplifies the use of sensors and actuators when connected to an Arduino board. The goal is to plan and conduct a simple one or two hours of training workshop where users will still have the opportunity to model meaningful interactions using discrete electronic components. It consists of already implemented basic functions for electronic components. In order to use its functions, it only requires to import this library and then call its functions.
EduIntro doesn’t depend on any library.
It is simple, basic and very easy to understand. The user only needs to import the library in his code and start using its functions.
Basic functions of discrete electronic components have already been implemented in this library. For a small one or two hours workshop, the user does not have to implement all the basic functions for the electronic component from scratch.
Basic functions of the electronic components have been implemented in this library. There's no need to re-implement these basic functions from scratch. The user simply has to import the library in the project and can use any of its functions by just calling it.
EduIntro has a simple and intuitive syntax to handle variables and functions.
EduIntro is free for everyone. Everyone can download and use it in their projects, assignments or anywhere for free.
readX()
readY()
readZ()
read()
increasing()
decreasing()
read()
isPWM()
write()
on()
off()
blink()
state()
Note: construct an output with e.g. Led NAME(PIN) or Led NAME(PIN,NORMAL | INVERTED), this helps with common cathode LEDs
There are many examples implemented in this library. Below are shown some of the examples.
Turns on an LED on for one second, then off for one second, repeatedly
#include <EduIntro.h>
Led led(D10);
void loop()
{
led.on();
delay(1000);
led.off();
delay(1000);
}
Changes the behavior between on and off an LED when pressing a button.
#include <EduIntro.h>
Button button(D7);
Led led(D10);
void loop()
{
if (button.readSwitch() == LOW) {
led.on();
}
else {
led.off();
}
}
The previous release included a non-functional WiFiComm file. It has been revised and made beautification in some of the code. It has been made sure that the Classic boards work fine as it got broken in the previous release.
Added support for the WiFi REV2 board and fixed the incompatibilities with servo and piezo.
All classes were separated to allow adding new classes by simply copy-pasting and modifying template examples.
General bug fixing: servo library not-two-servos fixed, added a new two-melodies example, fixed the button-pressed-by-default bug. Thanks to D. Spikol for bug catching and S. Mistry for reminding me that C++ inheritance is not always doing the things you expect.
For a course at Aalborg University, CPH, we added the humidity and temperature sensor DHT11, the LM35 temperature sensor, a PIR sensor, and a couple more examples to the courseware.
Sabas came all the way from Mexico to Malmo and made a fresh pull request. Now the library works with MKR boards!
See possible results of the workshop here
If you want to contribute to this project:
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
The Library created and maintained by D. Cuartielles, Malmo, 2018 - 2019 WiFi REV2 compatibility by C. Rodriguez (IMU + WiFi), and D. Cuartielles (servo), Malmo, 2019 MKR compatibility by A. Sabas, Malmo, 2019
Based on previous work by:
number: v0.0.16
codename: ananas
This library is licensed under GPLv3.