diff --git a/Arduino/hello-world/hello-world.ino b/Arduino/hello-world/hello-world.ino new file mode 100644 index 0000000000000000000000000000000000000000..4ffc945c0c91455b9ce7c8efa919b9d5e308e1d8 --- /dev/null +++ b/Arduino/hello-world/hello-world.ino @@ -0,0 +1,13 @@ +unsigned int i = 0; + +void setup() { + // put your setup code here, to run once: + Serial.begin(9600); +} + +void loop() { + // put your main code here, to run repeatedly: + Serial.print("Hello World! "); + Serial.println(i++); + delay(400); +} diff --git a/setup.sh b/setup.sh index 0d8447cef55d82ca05aa1b5748f2127a42076cdb..c47d19af5552281f3688e4351ff1f49cb46db00e 100755 --- a/setup.sh +++ b/setup.sh @@ -163,11 +163,12 @@ sudo cp /usr/share/applications/arduino.desktop /home/$vncBaseName$i/Desktop/ done - echo "Adding example Sketch." + echo "Adding example Sketches." for i in $(seq 1 $vncCount) do sudo mkdir -p /home/$vncBaseName$i/Arduino sudo cp -r Arduino/* /home/$vncBaseName$i/Arduino/ + sudo chown -R $vncBaseName$i:$vncBaseName$i /home/$vncBaseName$i/Arduino/ done #display useful info