-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6b84b9
commit b1702d4
Showing
11 changed files
with
82 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import typing as t | ||
from pathlib import Path | ||
|
||
if t.TYPE_CHECKING: | ||
from pytest_embedded_arduino.app import ArduinoApp | ||
|
||
|
||
class ArduinoFirmwareResolver: | ||
""" | ||
ArduinoFirmwareResolver class | ||
""" | ||
|
||
def resolve_firmware(self, app: 'ArduinoApp'): | ||
# get path of ino.bin file | ||
return Path(app.binary_path, app.sketch + '.ino.bin') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
tests/fixtures/hello_world_arduino/build/build.options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"additionalFiles": "", | ||
"builtInLibrariesFolders": "/private/var/folders/t6/v8mgvn9950q9j_wkb3kp1mv40000gn/T/AppTranslocation/5BC795C6-A892-4411-BEA2-AFD13C97CB9D/d/Arduino.app/Contents/Java/libraries", | ||
"builtInToolsFolders": "", | ||
"compiler.optimization_flags": "", | ||
"customBuildProperties": "build.warn_data_percentage=75", | ||
"builtInLibrariesFolders": "", | ||
"builtInToolsFolders": "/Applications/Arduino.app/Contents/Java/tools-builder", | ||
"compiler.optimization_flags": "-Os", | ||
"customBuildProperties": "", | ||
"fqbn": "espressif:esp32:esp32:PSRAM=enabled,PartitionScheme=huge_app", | ||
"hardwareFolders": "/Users/ouss4/Library/Arduino15/packages,/Users/ouss4/Documents/Arduino/hardware", | ||
"otherLibrariesFolders": "/Users/ouss4/Documents/Arduino/libraries", | ||
"runtime.ide.version": "10607", | ||
"sketchLocation": "/Users/ouss4/esp/pytest-embedded/examples/arduino/hello_world_arduino/hello_world_arduino.ino" | ||
} | ||
"hardwareFolders": "/Users/prochy/Documents/Arduino/hardware", | ||
"otherLibrariesFolders": "/Users/prochy/Documents/Arduino/libraries", | ||
"runtime.ide.version": "10810", | ||
"sketchLocation": "/Users/prochy/Documents/Arduino/hardware/espressif/esp32/tests/hello_world/hello_world.ino" | ||
} |
Binary file modified
BIN
+30.7 KB
(110%)
tests/fixtures/hello_world_arduino/build/hello_world_arduino.ino.bin
Binary file not shown.
Binary file modified
BIN
+336 Bytes
(100%)
tests/fixtures/hello_world_arduino/build/hello_world_arduino.ino.bootloader.bin
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
tests/fixtures/hello_world_arduino/build/hello_world_arduino.ino.partitions.bin
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"version": 1, | ||
"author": "[email protected]", | ||
"editor": "wokwi", | ||
"parts": [ | ||
{ | ||
"type": "board-esp32-devkit-c-v4", | ||
"id": "esp" | ||
} | ||
], | ||
"connections": [ | ||
[ | ||
"esp:TX", | ||
"$serialMonitor:RX", | ||
"" | ||
], | ||
[ | ||
"esp:RX", | ||
"$serialMonitor:TX", | ||
"" | ||
] | ||
] | ||
} |