diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-04-25 09:21:13 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-04-25 09:21:13 +0200 |
commit | 4bae244f426a39951f404af8f752f715a151f20e (patch) | |
tree | 792b45c2f035a5ae8c974025d9510b730aebe644 /arduino/01-blink-a-led | |
parent | 42ec7df723ece5c2c4400d8db24e3a2ac6b826d0 (diff) | |
download | iot-workshop-4bae244f426a39951f404af8f752f715a151f20e.tar.gz iot-workshop-4bae244f426a39951f404af8f752f715a151f20e.tar.bz2 iot-workshop-4bae244f426a39951f404af8f752f715a151f20e.tar.xz iot-workshop-4bae244f426a39951f404af8f752f715a151f20e.zip |
o Renaming arduino to assignments.
Diffstat (limited to 'arduino/01-blink-a-led')
-rw-r--r-- | arduino/01-blink-a-led/Makefile | 4 | ||||
-rw-r--r-- | arduino/01-blink-a-led/blink-a-led.md | 39 | ||||
-rw-r--r-- | arduino/01-blink-a-led/blink-a-led.pdf | bin | 703496 -> 0 bytes | |||
-rw-r--r-- | arduino/01-blink-a-led/schematic/assignment-1.fzz | bin | 21480 -> 0 bytes | |||
-rw-r--r-- | arduino/01-blink-a-led/schematic/assignment-1_bb.pdf | bin | 354599 -> 0 bytes | |||
-rw-r--r-- | arduino/01-blink-a-led/schematic/assignment-1_schem.pdf | bin | 263607 -> 0 bytes | |||
-rw-r--r-- | arduino/01-blink-a-led/solution/assignment-1/assignment-1.ino | 20 |
7 files changed, 0 insertions, 63 deletions
diff --git a/arduino/01-blink-a-led/Makefile b/arduino/01-blink-a-led/Makefile deleted file mode 100644 index b015ec1..0000000 --- a/arduino/01-blink-a-led/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -DIR=01-blink-a-led -A=blink-a-led - -include $(BASEDIR)/Makefile.assignment diff --git a/arduino/01-blink-a-led/blink-a-led.md b/arduino/01-blink-a-led/blink-a-led.md deleted file mode 100644 index f4b3fa1..0000000 --- a/arduino/01-blink-a-led/blink-a-led.md +++ /dev/null @@ -1,39 +0,0 @@ -# Assignment: Blink a led - - -## Goal - -Check that your local environment is working properly. - -## Step 1 - -Create this schematic: - -![](schematic/assignment-1_schem.pdf) - -![](schematic/assignment-1_bb.pdf) - -The colors on the wires used does not matter. The resistors -orientation is not important, but the LED's orientation is important. - -## Step 2 - -Implement `setup()` and `loop()`. In `setup()` configure the LED pin and blink the LED in `loop()`. - -Use these functions: - -~~~ .c++ - -Serial.begin(115200); -Serial.println(string); - -pinMode(pin, mode); -digitalWrite(pin, state); // HIGH or LOW -delay(); - -~~~ - -## Tips - -* It is useful to print a startup message just to see when the - application has started. diff --git a/arduino/01-blink-a-led/blink-a-led.pdf b/arduino/01-blink-a-led/blink-a-led.pdf Binary files differdeleted file mode 100644 index de719fd..0000000 --- a/arduino/01-blink-a-led/blink-a-led.pdf +++ /dev/null diff --git a/arduino/01-blink-a-led/schematic/assignment-1.fzz b/arduino/01-blink-a-led/schematic/assignment-1.fzz Binary files differdeleted file mode 100644 index da3ad5b..0000000 --- a/arduino/01-blink-a-led/schematic/assignment-1.fzz +++ /dev/null diff --git a/arduino/01-blink-a-led/schematic/assignment-1_bb.pdf b/arduino/01-blink-a-led/schematic/assignment-1_bb.pdf Binary files differdeleted file mode 100644 index 0995ece..0000000 --- a/arduino/01-blink-a-led/schematic/assignment-1_bb.pdf +++ /dev/null diff --git a/arduino/01-blink-a-led/schematic/assignment-1_schem.pdf b/arduino/01-blink-a-led/schematic/assignment-1_schem.pdf Binary files differdeleted file mode 100644 index a5241b2..0000000 --- a/arduino/01-blink-a-led/schematic/assignment-1_schem.pdf +++ /dev/null diff --git a/arduino/01-blink-a-led/solution/assignment-1/assignment-1.ino b/arduino/01-blink-a-led/solution/assignment-1/assignment-1.ino deleted file mode 100644 index 5b72892..0000000 --- a/arduino/01-blink-a-led/solution/assignment-1/assignment-1.ino +++ /dev/null @@ -1,20 +0,0 @@ -const int LED_PIN = D0; - -void setup() { - Serial.begin(115200); - Serial.println(); - Serial.println(); - Serial.println("Hello world!"); - pinMode(LED_PIN, OUTPUT); -} - -void loop() { - digitalWrite(LED_PIN, HIGH); - Serial.println("HIGH"); - delay(1000); - - digitalWrite(LED_PIN, LOW); - Serial.println("LOW"); - delay(1000); -} - |