Init project

This commit is contained in:
Rafa 2025-05-09 20:06:09 +01:00
commit 2495bd93f2
8 changed files with 60 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
build/

11
.vscode/run vendored Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
./bin/arduino-cli compile -b arduino:avr:uno code --libraries $HOME/.arduino15/libraries/ --build-path ./build --clean
echo "Starting simulation..."
sleep 1
xdotool key ctrl+shift+p
xdotool type "Wokwi: Start Simulation"
xdotool key Return

16
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,16 @@
{
// 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
}
}
]
}

5
README.md Normal file
View File

@ -0,0 +1,5 @@
# Trabalho prático de SE 3
## Instruções para executar
Para executar o trabalho (vscode) basta primir as teclas `Ctrl` + `Shift` + `B`

BIN
bin/arduino-cli Executable file

Binary file not shown.

14
code/code.ino Normal file
View File

@ -0,0 +1,14 @@
void setup() {
Serial.begin(9600);
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
Serial.println("Hello Teste para o TP3 :)!");
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
digitalWrite(LED_BUILTIN, LOW);
delay(500);
}

8
diagram.json Normal file
View File

@ -0,0 +1,8 @@
{
"version": 1,
"author": "Anonymous maker",
"editor": "wokwi",
"parts": [ { "type": "wokwi-arduino-uno", "id": "uno", "top": -28.2, "left": -10.2, "attrs": {} } ],
"connections": [],
"dependencies": {}
}

4
wokwi.toml Normal file
View File

@ -0,0 +1,4 @@
[wokwi]
version = 1
firmware = 'build/code.ino.hex'
elf = 'build/code.ino.elf'