Skip to content

Commit

Permalink
[PC-1957] Nicla Vision - Update Tutorial examples to work OpenMV (#2205)
Browse files Browse the repository at this point in the history
* microphone fixed

* SPI Fixed

* I2C fixed

* BLE fixed

* Live Stream ex fixed

* pin macros updated

* tables format
  • Loading branch information
mcmchris authored Oct 3, 2024
1 parent 9116281 commit b58a203
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 163 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def start_streaming(s):
while True:
clock.tick() # Track elapsed milliseconds between snapshots().
frame = sensor.snapshot()
cframe = frame.compressed(quality=35)
cframe = frame.to_jpeg(quality=35, copy=True)
header = (
"\r\n--openmv\r\n"
"Content-Type: image/jpeg\r\n"
Expand Down Expand Up @@ -273,7 +273,7 @@ def start_streaming(s):
while True:
clock.tick() # Track elapsed milliseconds between snapshots().
frame = sensor.snapshot()
cframe = frame.compressed(quality=35)
cframe = frame.to_jpeg(quality=35, copy=True)
header = (
"\r\n--openmv\r\n"
"Content-Type: image/jpeg\r\n"
Expand Down
Loading

0 comments on commit b58a203

Please sign in to comment.