267 Commits

Author SHA1 Message Date
pikastech
ecaf7ed0e9 add __platform for socket, add override 2022-08-26 16:40:12 +08:00
pikastech
a1b3347e5b support [\n ...] and {\n ...} 2022-08-13 00:08:21 +08:00
pikastech
878138329f rm old UnitTest 2022-08-11 19:24:05 +08:00
pikastech
cd6dfbbb71 unittest can run 2022-08-11 19:21:53 +08:00
pikastech
f180a15343 support %s and %r for any type arg 2022-08-11 18:32:53 +08:00
pikastech
bb54c2e719 support setattr and getattr
run tests() in cases is ok
2022-08-11 17:39:38 +08:00
pikastech
e1518e4b8f update lvgl to v1.10.0 2022-08-07 13:09:27 +08:00
pikastech
63b3ef11d4 fix push script 2022-08-06 23:29:14 +08:00
pikastech
e61e4716ac add examples for unittest 2022-08-06 23:26:04 +08:00
pikastech
57d89e256f support try_expect for open 2022-08-06 17:59:32 +08:00
pikastech
e393d33db7 fix Quaternion_test.py 2022-08-01 00:16:23 +08:00
pikastech
9493db3d7c add test file 2022-07-26 10:49:20 +08:00
pikastech
fb1e4e7237 add bigfile test 2022-07-26 10:42:02 +08:00
pikastech
4eff1e69d5 use alloc instead of VLA to support MSVC in PikaCV
markdown the mem err in PikaCV_test10.py
2022-07-21 14:06:03 +08:00
pikastech
d3778f05e8 fix .py file update 2022-07-20 22:02:46 +08:00
pikastech
d9b296cee8 release configparser 2022-07-20 21:55:40 +08:00
pikastech
2da2f124cf release configparser.py 2022-07-20 21:54:54 +08:00
pikastech
b6b09ead5c update testfiles to examples 2022-07-20 21:39:58 +08:00
pikastech
15c0985d2e add lseek() function
support readline(), readlines(), writelines() for FILEIO
2022-07-18 15:23:35 +08:00
李昂
d9349b7812 !61 Support seek() and tell() for FILEIO
* fix FILEIO.seek()
* return ftell in FILEIO.seek()
* fix test
* support seek() and tell() for FILEIO
2022-07-18 05:29:43 +00:00
pikastech
108dbebace add examples to PikaCV 2022-07-15 18:10:37 +08:00
pikastech
554bd00302 write to test/out folder 2022-07-15 15:20:30 +08:00
李昂
45a07c5773 !58 Support read() builtin
* support read(-1)
* add example
2022-07-15 02:06:23 +00:00
pikastech
5b1534b0b2 add ctypes.py in example 2022-07-14 18:06:10 +08:00
pikastech
8f9950d4ae support decode() and encode()
for PikaStdData.String() and PikaStdData.ByteArray()

use example/BuiltIn/encode_decode.py

fix CI
2022-07-14 12:02:38 +08:00
pikastech
8889671586 push binascii to package 2022-07-14 10:59:51 +08:00
pikastech
541dcc3cea move configparser_test to example
fix config parser err when value contain '='
2022-07-12 15:12:37 +08:00
pikastech
b7964797f1 transfer to BMP is ok 2022-07-11 10:22:04 +08:00
pikastech
6d4ac36199 support class method 2022-07-08 18:00: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
a9370691d2 fix image size overflow for g030 2022-07-01 22:55:29 +08:00
pikastech
43f11f26b6 add test 2022-07-01 09:37:09 +08:00
pikastech
f03c5a0312 add test py 2022-07-01 09:17:33 +08:00
李昂
7fafc7eee0
update examples/BuiltIn/type.py. 2022-06-30 08:15:08 +00:00
pikastech
944503cd23 support return val from type() 2022-06-30 16:10:38 +08:00
pikastech
847b9100cf clean example/builtin 2022-06-30 14:24:00 +08:00
pikastech
1fb06d621a add test for list inner dict 2022-06-30 13:18:59 +08:00
李昂
b669710c2c !39 Support d = {'a':x, 'b':y, 'c':z}
* Support d = {'a':x, 'b':y, 'c':z}
* add parse and ins for dict literal
2022-06-30 04:10:03 +00:00
李昂
b20b5f1bb5 !37 support <try> <except> <raise> keywords, not support parameter yet
* restore __pika_ooc.h
* raise in cmodule and py function is ok
* add trydef1.py
* add PIKA_ASSERT_ENABLE config, add try_info
2022-06-26 07:30:52 +00:00
pikastech
3e371e9e57 fix a[1] = 1 not work inner function() 2022-06-24 16:08:27 +08:00
李昂
e6a33c058e !34 Support __str__() for PikaStdData.List(),PikaStdData.Dict(),PikaStdData.dict_keys(),
* print list as '[x,x,x]'
* support __str__ for Dict
* support __str__ for dict_keys()
2022-06-24 03:30:56 +00:00
pikastech
ff16099da5 test iter() for keys is ok 2022-06-23 17:46:50 +08:00
pikastech
dbeb9ab239 add test and example for event 2022-06-17 14:45:52 +08:00
lyon
61ddc402ff support style for lvgl 2022-06-16 20:02:01 +08:00
李昂
71364445e0 !27 add lvgl package and examples
* support event for lvgl
* add example for lvgl
* adding const
* support core-widget for lvgl
* add lvgl package
2022-06-15 12:31:31 +00:00
李昂
6acc0f9ecd !25 support format output for print()
* test for format with tuple is ok
* 'format'%var is ok (tuple var is not ok)
* rename _cformat to cformat()
* optimize the memory usage of format_list
* add string-test.cpp
* cformat() is ok
* fix variable par load issue
* use test_common.h
* use test_common to simplify the gtest case
* Merge branch 'master' into dev
* fix float->double for bytecodegen
* update to /package
* Use double in C for float in python
2022-06-14 03:20:17 +00:00
pikastech
70f40df524 add test file, for loop in module not ok 2022-06-07 17:34:19 +08:00
lyon
cc62d1fefc add chinese test 2022-06-07 15:40:47 +08:00
pikastech
1c75bd0c19 add test6 for cJSON 2022-06-07 14:31:37 +08:00
pikastech
efea50d4cd move cJSON test to example/cJSON 2022-06-07 14:14:03 +08:00