-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from AtmelUniversityFrance/v0.2.0
V0.2.0
- Loading branch information
Showing
10 changed files
with
328 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* | ||
* Workaround dummy file to obtain the examples present in the IDE menu File->Examples | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
Blink | ||
Turns on an LED on for one second, then off for one second, repeatedly. | ||
Most Arduinos have an on-board LED you can control. On the Uno and | ||
Leonardo, it is attached to digital pin 13. If you're unsure what | ||
pin the on-board LED is connected to on your Arduino model, check | ||
the documentation at http://arduino.cc | ||
This example code is in the public domain. | ||
modified 8 May 2014 | ||
by Scott Fitzgerald | ||
Atmel AVR Xplained minis have a buitin LED connected to D13: LED0 | ||
updated 18 Nov 2015 by T. VIARD | ||
*/ | ||
|
||
// the setup function runs once when you press reset or power the board | ||
void setup(void) | ||
{ | ||
// initialize digital pin 13 as an output. | ||
pinMode(PIN_LED_13, OUTPUT); | ||
} | ||
|
||
// the loop function runs over and over again forever | ||
void loop(void) | ||
{ | ||
digitalWrite(PIN_LED_13, HIGH); // turn the LED on (HIGH is the voltage level) | ||
delay(1000); // wait for a second | ||
digitalWrite(PIN_LED_13, LOW); // turn the LED off by making the voltage LOW | ||
delay(1000); // wait for a second | ||
} |
64 changes: 64 additions & 0 deletions
64
module/libraries/Getting-Started/examples/button_SW0/button_SW0.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
Button | ||
Turns on and off a light emitting diode(LED) connected to digital | ||
pin 13, when pressing a pushbutton attached to pin 2. | ||
The circuit: | ||
* LED attached from pin 13 to ground | ||
* pushbutton attached to pin 2 from +5V | ||
* 10K resistor attached to pin 2 from ground | ||
* Note: on most Arduinos there is already an LED on the board | ||
attached to pin 13. | ||
created 2005 | ||
by DojoDave <http://www.0j0.org> | ||
modified 30 Aug 2011 | ||
by Tom Igoe | ||
This example code is in the public domain. | ||
http://www.arduino.cc/en/Tutorial/Button | ||
Atmel AVR Xplained minis have a buitin LED connected to D13: LED0 | ||
and a user available push button on pin D20: SW0. | ||
updated 18 Nov 2015 by T. VIARD | ||
*/ | ||
|
||
// constants won't change. They're used here to | ||
// set pin numbers: | ||
const int buttonPin = PIN_SW0; // the number of the pushbutton pin | ||
const int ledPin = PIN_LED_13; // the number of the LED pin | ||
|
||
// variables will change: | ||
int buttonState = 0; // variable for reading the pushbutton status | ||
|
||
void setup(void) | ||
{ | ||
// initialize the LED pin as an output: | ||
pinMode(ledPin, OUTPUT); | ||
// initialize the pushbutton pin as an input: | ||
pinMode(buttonPin, INPUT); | ||
} | ||
|
||
void loop(void) | ||
{ | ||
// read the state of the pushbutton value: | ||
buttonState = digitalRead(buttonPin); | ||
|
||
// check if the pushbutton is pressed. | ||
// if it is, the buttonState is HIGH: | ||
if (buttonState == HIGH) | ||
{ | ||
// turn LED on: | ||
digitalWrite(ledPin, HIGH); | ||
} | ||
else | ||
{ | ||
// turn LED off: | ||
digitalWrite(ledPin, LOW); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name=Atmel AVR Xplained mini Getting Started | ||
version=0.1.0 | ||
author=Atmel Corp./Thibaut VIARD | ||
maintainer= | ||
sentence=Getting Started library, integrated in Atmel AVR Xplained minis package. | ||
paragraph=This library integrate some original Arduino IDE examples updated to match the Atmel atmega Xplained minis. | ||
category=Uncategorized | ||
url=https://github.com/AtmelUniversityFrance/atmel-avr-xmini-boardmanagermodule | ||
architectures=avr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.