From 1fa23108734fbfd7186b7188a707a26fec8055c8 Mon Sep 17 00:00:00 2001 From: Alex Thomassen Date: Thu, 20 Sep 2018 09:44:51 +0200 Subject: [PATCH] Legg til oppgavetekst i kommentarer for Sep20 --- .../sketch_sep13a.ino | 0 .../.vscode/arduino.json | 0 .../.vscode/c_cpp_properties.json | 0 .../sketch_sep20a.ino | 7 +++++++ .../sketch_sep20b.ino | 8 +++++++- 5 files changed, 14 insertions(+), 1 deletion(-) rename Sketches/{sketch_sep13a => sketch_sep13a-LEDBlink}/sketch_sep13a.ino (100%) rename Sketches/{sketch_sep20a => sketch_sep20a-AverageValue}/.vscode/arduino.json (100%) rename Sketches/{sketch_sep20a => sketch_sep20a-AverageValue}/.vscode/c_cpp_properties.json (100%) rename Sketches/{sketch_sep20a => sketch_sep20a-AverageValue}/sketch_sep20a.ino (86%) rename Sketches/{sketch_sep20b => sketch_sep20b-LargestValue}/sketch_sep20b.ino (69%) diff --git a/Sketches/sketch_sep13a/sketch_sep13a.ino b/Sketches/sketch_sep13a-LEDBlink/sketch_sep13a.ino similarity index 100% rename from Sketches/sketch_sep13a/sketch_sep13a.ino rename to Sketches/sketch_sep13a-LEDBlink/sketch_sep13a.ino diff --git a/Sketches/sketch_sep20a/.vscode/arduino.json b/Sketches/sketch_sep20a-AverageValue/.vscode/arduino.json similarity index 100% rename from Sketches/sketch_sep20a/.vscode/arduino.json rename to Sketches/sketch_sep20a-AverageValue/.vscode/arduino.json diff --git a/Sketches/sketch_sep20a/.vscode/c_cpp_properties.json b/Sketches/sketch_sep20a-AverageValue/.vscode/c_cpp_properties.json similarity index 100% rename from Sketches/sketch_sep20a/.vscode/c_cpp_properties.json rename to Sketches/sketch_sep20a-AverageValue/.vscode/c_cpp_properties.json diff --git a/Sketches/sketch_sep20a/sketch_sep20a.ino b/Sketches/sketch_sep20a-AverageValue/sketch_sep20a.ino similarity index 86% rename from Sketches/sketch_sep20a/sketch_sep20a.ino rename to Sketches/sketch_sep20a-AverageValue/sketch_sep20a.ino index 0968281..c326327 100644 --- a/Sketches/sketch_sep20a/sketch_sep20a.ino +++ b/Sketches/sketch_sep20a-AverageValue/sketch_sep20a.ino @@ -1,3 +1,10 @@ +/** + * Øvelse variabler 1: + * + * Finn gjennomsnittet av 4 verdier og skriv det ut i «seriell overvåker» vinduet + * Det skal brukes variabler! + */ + /** * Version 1 */ diff --git a/Sketches/sketch_sep20b/sketch_sep20b.ino b/Sketches/sketch_sep20b-LargestValue/sketch_sep20b.ino similarity index 69% rename from Sketches/sketch_sep20b/sketch_sep20b.ino rename to Sketches/sketch_sep20b-LargestValue/sketch_sep20b.ino index ec006ad..046cf55 100644 --- a/Sketches/sketch_sep20b/sketch_sep20b.ino +++ b/Sketches/sketch_sep20b-LargestValue/sketch_sep20b.ino @@ -1,3 +1,9 @@ +/** + * Øvelse variabler 2: + * Finn det største av 2 verdier og skriv det ut i «seriell overvåker» vinduet + * Det skal brukes variabler! + */ + void prnt(int largest, int smallest) { Serial.print(largest); Serial.print(" is larger than "); @@ -20,4 +26,4 @@ void setup() { Serial.end(); } -void loop() {} \ No newline at end of file +void loop() {}