diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-04-25 09:03:31 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-04-25 09:03:31 +0200 |
commit | 42ec7df723ece5c2c4400d8db24e3a2ac6b826d0 (patch) | |
tree | b60357f2fd4cae75fa12816fe22284d454ca39b9 /arduino/01-blink-a-led/blink-a-led.md | |
parent | fc8c037b80dea764393b79cba85a83004bd0aef6 (diff) | |
download | iot-workshop-42ec7df723ece5c2c4400d8db24e3a2ac6b826d0.tar.gz iot-workshop-42ec7df723ece5c2c4400d8db24e3a2ac6b826d0.tar.bz2 iot-workshop-42ec7df723ece5c2c4400d8db24e3a2ac6b826d0.tar.xz iot-workshop-42ec7df723ece5c2c4400d8db24e3a2ac6b826d0.zip |
wip
Diffstat (limited to 'arduino/01-blink-a-led/blink-a-led.md')
-rw-r--r-- | arduino/01-blink-a-led/blink-a-led.md | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/arduino/01-blink-a-led/blink-a-led.md b/arduino/01-blink-a-led/blink-a-led.md new file mode 100644 index 0000000..f4b3fa1 --- /dev/null +++ b/arduino/01-blink-a-led/blink-a-led.md @@ -0,0 +1,39 @@ +# 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. |