-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Compatible with maixpy v1 sensor and lcd
- Loading branch information
Showing
9 changed files
with
1,085 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env python | ||
|
||
from maix.v1 import lcd, image | ||
from maix import time | ||
|
||
lcd.init() | ||
print('lcd width:', lcd.width()) | ||
print('lcd height:', lcd.height()) | ||
|
||
img = image.Image("test.jpg") | ||
print('img width:', img.width()) | ||
print('img height:', img.height()) | ||
print('img format:', img.format()) | ||
print('img data size:', img.size()) | ||
lcd.display(img) | ||
|
||
while True: | ||
time.sleep(1) |
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 @@ | ||
#!/usr/bin/env python | ||
|
||
from maix.v1 import lcd, image | ||
from maix import time | ||
|
||
img = image.Image("test.jpg") | ||
|
||
lcd.init() | ||
lcd.display(img) | ||
# lcd.clear() | ||
print('lcd width:', lcd.width()) | ||
print('lcd height:', lcd.height()) | ||
|
||
while True: | ||
time.sleep(1) |
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,20 @@ | ||
#!/usr/bin/env python | ||
|
||
from maix.v1 import lcd, sensor | ||
from maix import time | ||
|
||
lcd.init() | ||
sensor.reset() | ||
# sensor.set_pixformat(sensor.RGB565) | ||
sensor.set_framesize(sensor.VGA) | ||
sensor.run(1) | ||
sensor.skip_frames(1) | ||
# sensor.set_colorbar(1) | ||
|
||
print('sensor width:', sensor.width()) | ||
print('sensor height:', sensor.height()) | ||
|
||
while True: | ||
img = sensor.snapshot() | ||
lcd.display(img) | ||
time.sleep_ms(30) |
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,2 +1 @@ | ||
|
||
__all__ = ["image", "machine", "lcd", "sensor", "video"] | ||
__all__ = ["image", "machine", "lcd", "sensor", "video", "audio"] |
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 @@ | ||
class Audio(): | ||
def __init__(array=None, path=None, points=1024): | ||
pass | ||
|
||
def to_bytes(): | ||
pass | ||
|
||
def play_process(): | ||
pass | ||
|
||
def play(): | ||
pass | ||
|
||
def finish(): | ||
pass |
Oops, something went wrong.