mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
b463e812bf
* add pikaCV-test.cpp * read(Image) and convert to RGB565 is tested ok * transfer can return res, but not assert * format tjpgd * add test for PikaCV * add assert for newContent * restore assets * restore PikaCV.pyi * restore PikaCV * restore uint16_t * add jpeg_test.py * move ADC, GPIO, RGB ... to Device * add jd_decomp * convert_JPEGtoREG888 is not ok * connecting tjpegdec * Converter.toRGB565() .toRGB888() .toGRay() eachother is ok * support Gray * add PikaCV_Image, PikaCV_ImageFormat * add classes for PikaCV * add PikaCV
27 lines
371 B
Python
27 lines
371 B
Python
import PikaStdLib
|
|
import machine
|
|
|
|
mem = PikaStdLib.MemChecker()
|
|
io1 = machine.GPIO()
|
|
time = machine.Time()
|
|
|
|
io1.init()
|
|
io1.setPin('PA8')
|
|
io1.setMode('out')
|
|
io1.enable()
|
|
io1.low()
|
|
|
|
print('hello pikascript')
|
|
print('mem.max :')
|
|
mem.max()
|
|
print('mem.now :')
|
|
mem.now()
|
|
|
|
while True:
|
|
mem.now()
|
|
io1.low()
|
|
time.sleep_ms(500)
|
|
io1.high()
|
|
time.sleep_ms(500)
|
|
|