104 Commits

Author SHA1 Message Date
pikastech
d4a0b37958 support **keys in cmodule
support print('test', end='')
2022-09-02 00:33:50 +08:00
李昂
7d191fc2ea !108 keys
* def foo(**keys) in py is ok
* __kwargs is ok
* gening dict
* fix arg->flag init faild
* supporting **keys
2022-08-30 16:40:04 +00:00
pikastech
2dd8b6979d add get/set arg_serialized
add setIsKeyword

support keyword input
2022-08-30 12:25:57 +08:00
pikastech
f76e456ea0 add test, examples for re, fix some mem leak 2022-08-29 16:29:03 +08:00
pikastech
6726169ad9 serilized to api
use mask in arg for serilized

support isKeyword flag for arg
2022-08-28 19:25:03 +08:00
pikastech
7e15e5e202 support __add__() for list 2022-08-16 17:40:11 +08:00
pikastech
d01ca77a51 support *var in py function 2022-08-16 12:21:11 +08:00
pikastech
7ca4a148d2 fix ac5 war 2022-08-05 14:07:57 +08:00
pikastech
941b3ad569 restore 2022-08-05 13:53:10 +08:00
pikastech
554ce93439 fixac5 2022-08-05 13:51:52 +08:00
pikastech
b47e2795d1 restore 2022-08-05 13:51:13 +08:00
pikastech
930389306a fix ac5 2022-08-05 13:48:01 +08:00
pikastech
61d7cc0230 Merge branch 'ac5fix' 2022-08-05 13:43:33 +08:00
pikastech
488748f15d fix ac5 warning 2022-08-05 13:39:11 +08:00
pikastech
0c0d89231c avoid core dump when not ':' found 2022-08-05 11:18:54 +08:00
pikastech
178353e259 use statkc buff[] when load args
skip tuple to accelerate

add speed for return arg in <RUN> inst
2022-08-04 11:12:32 +08:00
pikastech
446bc562cd accelerate for OUT ins 2022-08-01 10:06:49 +08:00
pikastech
56ec7c2410 more stack arg in VM 2022-07-31 19:48:35 +08:00
pikastech
6be2bc41b6 use pure_stack_arg 2022-07-31 17:18:29 +08:00
pikastech
e929bc67db use more macro inline in arg.h 2022-07-31 15:22:53 +08:00
pikastech
a40f68e9b2 use more inline in PikaVM
use static refcnt in PikaObj

use static _clsptr
2022-07-30 21:26:46 +08:00
李昂
b463e812bf !42 Support PikaCV, can read data from Jpeg and convert to rgb888/rgb565
* 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
2022-07-08 09:33:53 +00:00
Lyon
74050112e1 fit ac5 2022-07-01 23:40:41 +08:00
pikastech
9d087a934b fix ci error 2022-07-01 23:10:51 +08:00
pikastech
868b028a66 support <None> and <if res == None> 2022-06-22 15:39:48 +08:00
pikastech
2afaea6e7c support str() from bytes to string 2022-06-10 11:34:46 +08:00
pikastech
83b3611c4a use double in ARG_FLOAT 2022-06-10 09:29:49 +08:00
lyon
6f1a96ed37 test create list() by for_append 2022-06-01 11:59:12 +08:00
lyon
a97d6f3f76 support __str__ for String(), find mem leak when print(String('test')) 2022-06-01 11:46:59 +08:00
lyon
6b63c13bef support bytes() built-in 2022-05-26 15:46:34 +08:00
lyon
e7d8359891 clear the __IMPLEMENT__ 2022-05-23 22:28:09 +08:00
lyon
d82c3241ae clear the content_<> API, add 'clang-format off' to def_class 2022-05-22 21:52:37 +08:00
lyon
5b2ea98b77 solve warnigns of Arg Type 2022-05-22 21:11:32 +08:00
lyon
77267cff07 use class Arg instead of __arg 2022-05-22 20:50:28 +08:00
lyon
4906710b38 clear the macro function of arg 2022-05-22 17:13:01 +08:00
Lyon
b359062172
Dev (#118)
* add PLOOC

* add PLOOC to kernal

* remove unrequired files

* remove pack

* fix plooc ci in test/*.cpp

* add test_common.h

Co-authored-by: Gabriel Wang <embedded_zhuoran@Hotmail.com>
2022-05-19 20:52:19 +08:00
lyon
186b951078 support v1.8.0rc for stm32f103rb, and fix ac5 2022-05-16 21:45:58 +08:00
lyon
bef82257ef use 'rb''wb+' to avoid auto transfer form '\n' to '\r\n' in win 2022-05-15 00:38:25 +08:00
lyon
5aa541afa1 fix valgiand 2022-05-04 15:36:55 +08:00
lyon
b1b45b8784 add magic_code and version_num to lib_file info_block 2022-05-04 15:32:18 +08:00
lyon
95de5d6be8 using valgrand to find mem error 2022-05-02 14:48:10 +08:00
lyon
7f70e2a9df import type() 2022-04-27 23:38:00 +08:00
lyon
ba11251d6d support deinit no ref object 2022-04-26 12:23:39 +08:00
lyon
d8560dd24d task not pass, class not pass 2022-04-26 11:09:18 +08:00
lyon
df0db6a390 combine object and ref object 2022-04-26 10:43:50 +08:00
lyon
89d23c2d3e ref error in list.iter 2022-04-26 10:01:40 +08:00
lyon
9803b1cf9f gc not pass 2022-04-25 23:38:10 +08:00
lyon
88c0fd481e add _refcnt when get refArg from object 2022-04-25 19:19:44 +08:00
lyon
8bc6f64215 add ref_cnt domen for arg 2022-04-25 13:24:23 +08:00
李昂
3380490fd8
fix warning in msvc 2022-04-21 10:12:28 +00:00