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
李昂
9edb478e46
update examples/UnitTest/main.py.
2022-06-01 02:57:44 +00:00
lyon
971c7ffc48
remove from PikaObj import * in main.py
2022-05-19 21:21:57 +08:00
lyon1998
2fca76daa0
fix class_example
2022-04-04 16:34:45 +08:00
李昂
fc1771b41f
add examples/Car/main_pikacar.py.
2022-04-01 13:57:10 +00:00
李昂
97bb272a45
rename examples/Car/main.py to examples/Car/main_rtt.py.
2022-04-01 13:56:51 +00:00
李昂
2220786e36
update examples/Snake/main_snake_LCD.py.
2022-03-27 09:16:30 +00:00
lyon1998
f698745300
add sleep in rgb example
2022-03-27 14:40:37 +08:00
lyon
425c5e9636
add example car
2022-03-20 15:56:29 +08:00
lyon
59758ab47d
rm car example
2022-03-20 15:54:44 +08:00
李昂
a06ee7f74d
add examples/Car/main.py.
2022-03-20 07:53:16 +00:00
李昂
6bbdf5016b
新建 Car
2022-03-20 07:52:02 +00:00
lyon
4e747a49ed
update 030 to v1.5.0rc
2022-03-18 00:02:43 +08:00
lyon
c87c9c2bce
add main.py
2022-03-03 13:55:40 +08:00
lyon
d93b3e07e4
add UnitTest example
2022-03-02 23:28:06 +08:00
lyon
fc5f49269e
use Class name
2022-03-02 23:20:40 +08:00
李昂
a3682129f7
update examples/class/main.py.
2022-03-02 15:13:09 +00:00
lyon
754e662b39
add 'class' example
2022-03-02 23:06:00 +08:00
lyon
b0e2ceeb3e
restore Arm2D example
2022-02-23 19:15:25 +08:00
lyon
e7cab19a0a
install arm-2d as default
2022-02-23 19:02:12 +08:00
李昂
414cc86bf4
fix typo
2022-02-20 13:36:50 +00:00
lyon
f4b5ee234b
use machine instead of STM32G0 in examples
2022-02-20 20:25:59 +08:00