Skip to content

Commit e4a1185

Browse files
committed
👷 (Wokwi): add MPU6050 scenario
1 parent c87a6fa commit e4a1185

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
.vscode/c_cpp_properties.json
44
.vscode/launch.json
55
.vscode/ipch
6+
7+
build/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"version": 1,
3+
"author": "Leonid Meleshin",
4+
"editor": "wokwi",
5+
"parts": [
6+
{ "type": "wokwi-arduino-uno", "id": "uno", "top": 0.6, "left": -0.6, "attrs": {} },
7+
{
8+
"type": "wokwi-mpu6050",
9+
"id": "imu1",
10+
"top": -131.42,
11+
"left": 166.12,
12+
"rotate": -90,
13+
"attrs": {}
14+
}
15+
],
16+
"connections": [ [ "uno:A4.2", "imu1:SDA", "green", [ "v0" ] ], [ "uno:A5.2", "imu1:SCL", "green", [ "v0" ] ] ],
17+
"dependencies": {}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[wokwi]
2+
version = 1
3+
firmware = "../../../build/firmware.hex"
4+
elf = "../../../build/firmware.elf"
5+
6+
gdbServerPort=3333

platformio.ini

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
; Please visit documentation for the other options and examples
99
; https://docs.platformio.org/page/projectconf.html
1010

11+
[env:arduino_uno]
12+
platform = atmelavr
13+
board = uno
14+
framework = arduino
15+
1116
[env:esp32dev]
1217
platform = espressif32
1318
board = esp32dev

0 commit comments

Comments
 (0)