Tap 1 0 keys in Unity will make Arduino LED light on/off.
const int ledPin = 13;
int ledState = 0;
using System.IO; | |
string path = "Assets/file.txt"; | |
// Write to file | |
File.AppendAllText(path, System.String.Format("{0} {1} {3}\n", var1, var2, var3)); | |
// Read from file | |
StreamReader sr = new StreamReader(path); | |
for (int i = 0; !sr.EndOfStream; i++) { |
{ | |
"packages": [{ | |
"name": "Seeeduino", | |
"maintainer": "Seeed Studio", | |
"websiteURL": "https://www.seeedstudio.com/", | |
"email": "techsupport@seeed.cc", | |
"help": { | |
"online": "https://wiki.seeedstudio.com/" | |
}, | |
"platforms": [{ |