diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9a756c5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ + +build/ + + diff --git a/.vscode/run b/.vscode/run new file mode 100755 index 0000000..8cc30ec --- /dev/null +++ b/.vscode/run @@ -0,0 +1,13 @@ + +#!/bin/bash + +./bin/arduino-cli compile --fqbn arduino:avr:uno code --libraries ./libraries/ --build-path ./build --clean + +echo "Starting simulation..." + +sleep 1 + +xdotool key ctrl+shift+p +xdotool type "Wokwi: Start Simulation" +xdotool key Return + diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..f8a04f1 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,18 @@ + +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Run", + "type": "shell", + "command": "${workspaceFolder}/.vscode/run", + "group": { + "kind": "build", + "isDefault": true + } + } + ] +} + diff --git a/bin/arduino-cli b/bin/arduino-cli new file mode 100755 index 0000000..e43d830 Binary files /dev/null and b/bin/arduino-cli differ diff --git a/code/code.ino b/code/code.ino new file mode 100644 index 0000000..74f966a --- /dev/null +++ b/code/code.ino @@ -0,0 +1,6 @@ + +void setup() { +} + +void loop() { +} diff --git a/diagram.json b/diagram.json new file mode 100644 index 0000000..874e505 --- /dev/null +++ b/diagram.json @@ -0,0 +1,10 @@ + +{ + "version": 1, + "author": "Anonymous maker", + "editor": "wokwi", + "parts": [ { "type": "wokwi-arduino-uno", "id": "uno", "top": -28.2, "left": -10.2, "attrs": {} } ], + "connections": [], + "dependencies": {} +} + diff --git a/wokwi.toml b/wokwi.toml new file mode 100644 index 0000000..f2e4048 --- /dev/null +++ b/wokwi.toml @@ -0,0 +1,6 @@ + +[wokwi] +version = 1 +firmware = 'build/code.ino.hex' +elf = 'build/code.ino.elf' +