Skip to content

Commit e38c333

Browse files
cleveHEXladyada
authored andcommitted
Major bug fix + fix building PRs on adafruit/travis-ci-arduino (adafruit#27)
* Fix install.sh path * Fix * Remove newline * Fix Arduino IDE reinstall * Use normal blink instead of BlinkPlus
1 parent aa64a8f commit e38c333

File tree

4 files changed

+39
-50
lines changed

4 files changed

+39
-50
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
global:
1414
- ARDUINO_IDE_VERSION="1.8.5"
1515
before_install:
16-
- source <(curl -SLs https://raw.githubusercontent.com/${TRAVIS_REPO_SLUG}/${TRAVIS_BRANCH}/install.sh)
16+
- source $TRAVIS_BUILD_DIR/install.sh
1717
script:
1818
- build_platform esp32
1919
- build_platform uno

examples/Blink/Blink.ino

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
Blink
3+
4+
Turns an LED on for one second, then off for one second, repeatedly.
5+
6+
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
7+
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
8+
the correct LED pin independent of which board is used.
9+
If you want to know what pin the on-board LED is connected to on your Arduino
10+
model, check the Technical Specs of your board at:
11+
https://www.arduino.cc/en/Main/Products
12+
13+
modified 8 May 2014
14+
by Scott Fitzgerald
15+
modified 2 Sep 2016
16+
by Arturo Guadalupi
17+
modified 8 Sep 2016
18+
by Colby Newman
19+
20+
This example code is in the public domain.
21+
22+
http://www.arduino.cc/en/Tutorial/Blink
23+
*/
24+
25+
// the setup function runs once when you press reset or power the board
26+
void setup() {
27+
// initialize digital pin LED_BUILTIN as an output.
28+
pinMode(LED_BUILTIN, OUTPUT);
29+
}
30+
31+
// the loop function runs over and over again forever
32+
void loop() {
33+
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
34+
delay(1000); // wait for a second
35+
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
36+
delay(1000); // wait for a second
37+
}

examples/BlinkPlus/BlinkPlus.ino

Lines changed: 0 additions & 49 deletions
This file was deleted.

install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ if [ -z $ARDUINO_IDE_VERSION ]; then export ARDUINO_IDE_VERSION="1.8.5"; fi
3434
# if newer version is requested
3535
if [ ! -f $HOME/arduino_ide/$ARDUINO_IDE_VERSION ] && [ -f $HOME/arduino_ide/arduino ]; then
3636
shopt -s extglob
37+
cd $HOME/arduino_ide/
3738
rm -r -f !(esp32)
3839
cd $OLDPWD
3940
echo "DIFFERENT VERSION OF ARDUINO IDE REQUESTED!"

0 commit comments

Comments
 (0)