Init project
This commit is contained in:
commit
2495bd93f2
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
build/
|
||||||
11
.vscode/run
vendored
Executable file
11
.vscode/run
vendored
Executable 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
16
.vscode/tasks.json
vendored
Normal 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
5
README.md
Normal 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
BIN
bin/arduino-cli
Executable file
Binary file not shown.
14
code/code.ino
Normal file
14
code/code.ino
Normal 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
8
diagram.json
Normal 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
4
wokwi.toml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[wokwi]
|
||||||
|
version = 1
|
||||||
|
firmware = 'build/code.ino.hex'
|
||||||
|
elf = 'build/code.ino.elf'
|
||||||
Loading…
x
Reference in New Issue
Block a user