Skip to content

Commit

Permalink
Merge pull request #2 from AtmelUniversityFrance/v0.2.0
Browse files Browse the repository at this point in the history
V0.2.0
  • Loading branch information
aethaniel committed Nov 19, 2015
2 parents 370f265 + 50cec2f commit cf17ea8
Show file tree
Hide file tree
Showing 10 changed files with 328 additions and 135 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,7 @@ postpackaging:
@echo "TRAVIS_BUILD_NUMBER = $(TRAVIS_BUILD_NUMBER)"
@echo "PACKAGE_FILENAME = $(PACKAGE_FILENAME)"
cat extras/package_index.json.template | sed s/%%VERSION%%/$(CORE_VERSION)/ | sed s/%%FILENAME%%/$(PACKAGE_FILENAME)/ | sed s/%%CHECKSUM%%/$(PACKAGE_CHKSUM)/ | sed s/%%SIZE%%/$(PACKAGE_SIZE)/ > package_$(PACKAGE_NAME)_$(CORE_VERSION)_index.json
cp package_$(PACKAGE_NAME)_$(CORE_VERSION)_index.json package_$(PACKAGE_NAME)_index.json
cp package_$(PACKAGE_NAME)_$(CORE_VERSION)_index.json test_package_$(PACKAGE_NAME)_$(CORE_VERSION)_index.json
cp package_$(PACKAGE_NAME)_$(CORE_VERSION)_index.json test_package_$(PACKAGE_NAME)_index.json
@echo "package_$(PACKAGE_NAME)_$(CORE_VERSION)_index.json created"
16 changes: 9 additions & 7 deletions module/boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ atmega328p_xplained_mini.upload.maximum_data_size=2048
atmega328p_xplained_mini.upload.speed=55600

atmega328p_xplained_mini.bootloader.tool=arduino:avrdude
atmega328p_xplained_mini.bootloader.low_fuses=0xFE
atmega328p_xplained_mini.bootloader.high_fuses=0xD8
atmega328p_xplained_mini.bootloader.low_fuses=0xFF
atmega328p_xplained_mini.bootloader.high_fuses=0xDC
atmega328p_xplained_mini.bootloader.extended_fuses=0xE0
atmega328p_xplained_mini.bootloader.unlock_bits=0x3F
atmega328p_xplained_mini.bootloader.lock_bits=0x0F
Expand All @@ -56,22 +56,23 @@ atmega328pb_xplained_mini.upload.maximum_data_size=2048
atmega328pb_xplained_mini.upload.speed=55600

atmega328pb_xplained_mini.bootloader.tool=arduino:avrdude
atmega328pb_xplained_mini.bootloader.low_fuses=0xFE
atmega328pb_xplained_mini.bootloader.high_fuses=0xD8
atmega328pb_xplained_mini.bootloader.low_fuses=0xFF
atmega328pb_xplained_mini.bootloader.high_fuses=0xDC
atmega328pb_xplained_mini.bootloader.extended_fuses=0xE0
atmega328pb_xplained_mini.bootloader.unlock_bits=0x3F
atmega328pb_xplained_mini.bootloader.lock_bits=0x0F
atmega328pb_xplained_mini.bootloader.file=optiboot/optiboot/bootloaders/optiboot/optiboot_xplained328pb.hex

atmega328pb_xplained_mini.build.mcu=atmega328pb
#atmega328pb_xplained_mini.build.mcu=atmega328pb # needs AVR GCC toolchain update
atmega328pb_xplained_mini.build.mcu=atmega328p
atmega328pb_xplained_mini.build.f_cpu=16000000L
atmega328pb_xplained_mini.build.board=ATMEL_ATMEGA328PB_XMINI
atmega328pb_xplained_mini.build.core=arduino:arduino
atmega328pb_xplained_mini.build.variant=atmega328pb-xmini

#--------------------------------------------------------------------------------------#

atmega168pb_xplained_mini.name=Atmel atmega168p Xplained mini
atmega168pb_xplained_mini.name=Atmel atmega168pb Xplained mini

atmega168pb_xplained_mini.vid.0=0x03eb
atmega168pb_xplained_mini.pid.0=0x2145
Expand All @@ -90,7 +91,8 @@ atmega168pb_xplained_mini.bootloader.unlock_bits=0x3F
atmega168pb_xplained_mini.bootloader.lock_bits=0x0F
atmega168pb_xplained_mini.bootloader.file=optiboot/optiboot/bootloaders/optiboot/optiboot_xplained168pb.hex

atmega168pb_xplained_mini.build.mcu=atmega168pb
#atmega168pb_xplained_mini.build.mcu=atmega168pb # needs AVR GCC toolchain update
atmega168pb_xplained_mini.build.mcu=atmega168p
atmega168pb_xplained_mini.build.f_cpu=16000000L
atmega168pb_xplained_mini.build.board=ATMEL_ATMEGA168PB_XMINI
atmega168pb_xplained_mini.build.core=arduino:arduino
Expand Down
3 changes: 3 additions & 0 deletions module/libraries/Getting-Started/Getting-Started.hpp
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
*/
33 changes: 33 additions & 0 deletions module/libraries/Getting-Started/examples/blink/blink.ino
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
}
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);
}
}
9 changes: 9 additions & 0 deletions module/libraries/Getting-Started/library.properties
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
5 changes: 3 additions & 2 deletions module/platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
# For more info:
# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5-3rd-party-Hardware-specification
# https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.6.x-package_index.json-format-specification

name=Atmel AVR Boards
version=0.1.0
name=Atmel AVR Xplained minis
version=0.2.0
Loading

0 comments on commit cf17ea8

Please sign in to comment.