Kwabena W. Agyeman
1d52a9f759
modules: Refactor keyword_to_image helper function.
2023-10-30 18:08:22 -07:00
Ibrahim Abdelkader
a388b0711d
Merge pull request #1993 from kwagyeman/kwabena/add_hmirror_vflip_transpose_to_draw_image
...
imlib: Add hmirror, vflip, and transpose support to draw_image.
2023-10-30 18:21:32 +02:00
Kwabena W. Agyeman
3fc2480126
modules: Move palette constants to the image module.
2023-10-29 23:30:16 -07:00
Kwabena W. Agyeman
30ed69b306
imlib: Add hmirror, vflip, and transpose support to draw_image.
2023-10-29 23:08:11 -07:00
Kwabena W. Agyeman
fee9b435fa
modules: Remove the static spi_display pointer.
2023-10-29 15:40:03 -07:00
Kwabena W. Agyeman
230fa1ca32
imlib: Add callback argument to draw_image.
2023-10-29 15:35:58 -07:00
Kwabena W. Agyeman
8ea9c98e00
imlib: Fix potential mjpeg bounds calculation bug.
2023-10-29 15:29:51 -07:00
Kwabena W. Agyeman
15c98c0762
imlib: Refactor imlib_draw_image_rect.
2023-10-29 15:28:22 -07:00
iabdalkader
8178c237cc
modules/display: Refactor scale arg parsing.
2023-10-29 19:42:18 +01:00
iabdalkader
ca184b6d07
modules/helper: Add arg_to_scale helper.
2023-10-29 19:42:00 +01:00
iabdalkader
dc73c0e298
modules: Refactor py_helper_arg_to_image functions.
2023-10-29 18:39:15 +01:00
iabdalkader
161737092d
modules/display: Switch to mp_arg_parse.
2023-10-29 17:17:50 +01:00
iabdalkader
f19f8918d2
modules/py_helper: Add helper functions to support mp_arg_parse.
...
Those new helper functions will be used later to refactor other functions.
2023-10-29 17:17:26 +01:00
Ibrahim Abdelkader
fb9379e1e1
Merge pull request #1976 from openmv/ff_refactor
...
misc: Refactor file management code.
2023-10-29 11:57:26 +02:00
Ibrahim Abdelkader
a99a8fad95
Merge pull request #1996 from kwagyeman/kwabena/fix_tv_bug
...
modules/tv: Fix image corruption when specifying image rect.
2023-10-27 22:32:35 +02:00
iabdalkader
6d4c4224a2
drivers/winc: Fix AP mode.
...
The `WEP` security mode has been deprecated since firmware 19.7.6
the only two supported modes now are open and WPA.
2023-10-27 22:18:45 +02:00
Kwabena W. Agyeman
d05c7a67c8
modules/tv: Fix image corruption when specifying image rect.
2023-10-27 12:37:03 -07:00
iabdalkader
b6cdf8de15
modules/py_winc: Make module more compatible with other WiFi modules.
2023-10-27 21:10:23 +02:00
Ibrahim Abdelkader
b65f639f82
Merge pull request #1994 from openmv/display_backlight
...
modules/display: Add support for Python backlight controllers.
2023-10-27 15:24:39 +02:00
iabdalkader
7bcdca8241
scripts/libraries: Refactor display module.
2023-10-27 12:14:47 +02:00
iabdalkader
ad44d4533f
scripts/libraries: Add Python DAC and PWM backlight controllers.
2023-10-27 12:14:47 +02:00
iabdalkader
391ec443f6
modules/display: Add support for Python backlight controllers.
2023-10-27 12:14:46 +02:00
iabdalkader
274b4e915c
boards/arduino_nano_33_ble_sense: Update board manifest.py.
2023-10-26 15:55:23 +02:00
iabdalkader
c4511338a2
micropython: Add MICROPY_NLR_RAISE_HOOK.
...
- This can be set from a custom mpconfigport.h file to call
fb_alloc_free or any other needed cleanup before an exception.
- The omvdummy stuff is no longer needed since a default empty
hook is defined.
2023-10-24 22:04:32 +02:00
iabdalkader
ec40364ed4
ports/all: Add custom mpconfigport file.
2023-10-24 22:03:38 +02:00
iabdalkader
1cd9a8ae68
modules/spi_display: Fix display args.
...
Arguments were parsed/used in the wrong order.
2023-10-23 16:36:40 +02:00
iabdalkader
d11c0b4669
micropython: Update docs.
2023-10-21 09:15:50 +02:00
iabdalkader
364cbce1d7
misc: Fix build when debugging is enabled.
2023-10-17 15:49:17 +02:00
iabdalkader
03f4dd75c6
imlib: Fix corner detection bug.
2023-10-17 15:01:43 +02:00
iabdalkader
c0753da1df
stm32/boards/ARDUINO_GIGA: Add QSPI fix/workaround to early init.
2023-10-16 15:16:55 +02:00
iabdalkader
0a04368528
misc: Refactor file management code.
2023-10-15 17:51:35 +02:00
Ibrahim Abdelkader
e9ef4cda2d
Merge pull request #1975 from kwagyeman/kwabena/support_loading_bytearrays
...
imlib: Support creating images from bytearrays.
2023-10-15 10:07:34 +03:00
Kwabena W. Agyeman
6752c95ac3
imlib: Support creating images from bytearrays.
2023-10-14 10:03:30 -07:00
Ibrahim Abdelkader
a5c52bb75b
Merge pull request #1974 from kwagyeman/kwabena/fix_fsync
...
ports/mimxrt: Add support for fsync pin to snapshot.
2023-10-13 21:14:42 +03:00
Kwabena W. Agyeman
bac362b47a
ports/mimxrt: Add support for fsync pin to snapshot.
2023-10-13 10:39:26 -07:00
Kwabena W. Agyeman
9f6046bc1c
boards/OPENMV_RT1060: Add FSYNC pin and fixed swapped MOSI/MISO pins on SPI4.
2023-10-13 10:38:37 -07:00
Kwabena W. Agyeman
8c010b8ca6
sensors/mt9v0xx: Enable row noise correction.
2023-10-12 13:30:02 -07:00
iabdalkader
2aaff2a24e
misc: Bump firmware version.
2023-10-10 16:05:37 +02:00
iabdalkader
b1f0e0d1c0
misc: Bump firmware version.
2023-10-10 15:40:41 +02:00
Ibrahim Abdelkader
76628b3719
Merge pull request #1971 from openmv/ov7670_vga_window
...
sensors/OV7670: Fix VGA window.
2023-10-10 16:08:51 +03:00
iabdalkader
99e46e9f04
sensors/OV7670: Fix VGA window.
2023-10-10 15:02:57 +02:00
Ibrahim Abdelkader
79a4e169d7
Merge pull request #1970 from openmv/sensor_auto_func_fail
...
modules/py_sensor: Print warning on missing sensor controls.
2023-10-10 13:17:53 +03:00
iabdalkader
dbf4996f21
modules/py_sensor: Print warning on missing sensor controls.
...
Will not raise an exception if a sensor control is not implemented,
this will allow sharing more scripts between different sensors.
2023-10-10 12:00:21 +02:00
Ibrahim Abdelkader
21ce6f70a0
Merge pull request #1960 from kwagyeman/kwabena/super_morph
...
imlib: Improve morph grayscale/rgb565 performance by 2.5x.
2023-10-10 09:42:32 +03:00
Kwabena W. Agyeman
e3b5ac7fe9
imlib: Improve morph grayscale/rgb565 performance by 2.5x.
2023-10-09 12:33:35 -07:00
Ibrahim Abdelkader
2e094d5522
Merge pull request #1964 from kwagyeman/kwabena/fix_bug
...
imlib: Fix in-place scaling bug.
2023-10-09 17:37:38 +03:00
iabdalkader
0cd2e9cbd4
boards/ARDUINO_GIGA: Add Arduino pins.
2023-10-09 16:19:25 +02:00
iabdalkader
023e89a535
micropython/drivers/cywbt.c: Sync CYWBT driver with upstream.
2023-10-09 13:36:41 +02:00
Kwabena W. Agyeman
a2861040e3
imlib: Fix in-place scaling bug.
2023-10-08 22:51:55 -07:00
iabdalkader
088bf957e0
boards/arduino_nano_33_ble_sense: Add LED pins.
2023-10-06 19:54:44 +02:00
iabdalkader
c5b4d061ad
scripts/libraries: Add machine extension module.
2023-10-06 19:19:10 +02:00
Ibrahim Abdelkader
6f596c901d
Merge pull request #1956 from kwagyeman/kwabena/cleanup_dma2d
...
imlib: Fix DMA2D cache line access.
2023-10-06 16:31:40 +03:00
iabdalkader
02eb33995a
ports/stm32: Fix display portrait mode.
2023-10-06 15:18:32 +02:00
Kwabena W. Agyeman
522a363f5c
imlib: Remove redundant code in draw.c.
2023-10-05 17:48:31 -07:00
Kwabena W. Agyeman
bcc1eacd69
imlib: Fix DMA2D cache line access.
2023-10-05 17:47:37 -07:00
Kwabena W. Agyeman
8c8f23b605
ports/stm32: Improve LCD display update interrupt code.
2023-10-05 16:56:27 -07:00
iabdalkader
7f795dbb2a
boards: Add support for Arduino Giga.
2023-10-05 16:05:52 +02:00
iabdalkader
b2852ecd04
micropython: Fix I2C4 support.
2023-10-05 15:52:27 +02:00
iabdalkader
99140040e2
ports/stm32: Call sensor MDMA handler if needed.
2023-10-04 20:51:41 +02:00
iabdalkader
5c1599c14e
ports/stm32: Remove hardcoded MDMA channels.
...
MDMA channels can now be defined in board config files.
2023-10-04 20:51:36 +02:00
Ibrahim Abdelkader
9b5b2476c4
Merge pull request #1938 from kwagyeman/kwabena/sensor_full_control
...
sensors: Add full control.
2023-10-04 20:26:09 +03:00
iabdalkader
65524162b2
ports/stm32: Fix DSI display timing.
2023-10-04 19:16:58 +02:00
Kwabena W. Agyeman
6e99dcbdb4
sensors/ov5640: Fix exposure calculation.
2023-10-03 14:18:17 -07:00
Kwabena W. Agyeman
74ff2d28f4
sensors: Fix gain calculation math accuracy.
2023-10-03 14:18:17 -07:00
Kwabena W. Agyeman
53d69d3473
sensors/ov5640: Add night mode control.
2023-10-03 14:18:17 -07:00
Kwabena W. Agyeman
25d4f197c1
sensors/ov5640: Add black level calibration control.
2023-10-03 14:18:17 -07:00
Kwabena W. Agyeman
abfd430854
sensors/ov7725: Add ioctl to control nightmode.
2023-10-03 14:18:17 -07:00
Kwabena W. Agyeman
33db84ebdc
sensors/ov7725: Add controls for blc.
2023-10-03 14:18:17 -07:00
Kwabena W. Agyeman
3fde9542a8
sensors: Add stubs for controlling sensor blc.
2023-10-03 14:18:06 -07:00
Ibrahim Abdelkader
1bc70b0bef
Merge pull request #1946 from kwagyeman/kwabena/fix_transpose_glitches
...
ports/stm32: Drop frames on transpose corruption.
2023-10-03 22:27:30 +03:00
Kwabena W. Agyeman
63deacdd51
ports/stm32: Drop frames on transpose corruption.
2023-10-03 08:59:12 -07:00
iabdalkader
99ae306b99
sensors/OV7670: Implement flip and mirror controls.
2023-10-03 13:05:31 +02:00
Kwabena W. Agyeman
8fb6dfd88b
imlib: Speed up transpose by 5X.
2023-10-02 18:37:40 -07:00
iabdalkader
2b5b7963bb
scripts/libraries: Replace drivers with upstream versions.
2023-10-02 14:29:41 +02:00
iabdalkader
55dfec4f06
ports/stm32: Enable DSI display support.
2023-10-01 16:49:18 +02:00
iabdalkader
6c63368297
boards/All: Update board display configuration.
2023-10-01 16:49:18 +02:00
iabdalkader
227824aaca
micropython: Refactor all display related modules.
2023-10-01 16:49:18 +02:00
iabdalkader
7467731a38
micropython: Add TFP410 DVI serializer module.
2023-10-01 16:49:18 +02:00
iabdalkader
86ad6dcdbd
micropython: Add FT5X06 touch panel driver module.
2023-10-01 16:49:18 +02:00
iabdalkader
9471f94cd1
micropython: Add display data channel module.
2023-10-01 16:49:18 +02:00
iabdalkader
43a4e5519e
drivers: Add CEC driver.
2023-10-01 16:49:18 +02:00
iabdalkader
9344c3b743
boards/All: Rename LED pins more consistently.
2023-10-01 16:24:42 +02:00
iabdalkader
311d401cc5
sensors/OV7670: Fix VGA window.
2023-10-01 14:19:30 +02:00
iabdalkader
ae327c186d
sensors: Support scanning multiple devices on the camera bus.
...
To support boards that have multiple devices on the camera bus,
the scan now uses a list to return all detected addresses, and
it will check them all for a valid sensor.
2023-09-27 19:00:40 +02:00
iabdalkader
7a022148f2
micropython: Fix QSPI reset command.
...
Need to add a delay after a reset and before issuing any other
commands.
2023-09-27 18:30:30 +02:00
Ibrahim Abdelkader
2e8d5d505d
Merge pull request #1936 from openmv/microspeech_fix
...
ports/stm32: Fix microspeech demo.
2023-09-25 14:13:22 +03:00
iabdalkader
0648071141
ports/stm32: Fix microspeech demo.
...
- Need to poll events to schedule the audio callback after switching
from pendsv.
- Fixes #1904
2023-09-25 12:38:13 +02:00
iabdalkader
13293d7416
ports/stm32: Misc fixes.
...
- Link user switch module.
- Add missing string header for debug builds.
2023-09-25 12:29:46 +02:00
Kwabena W. Agyeman
d7687260fe
drivers: Update SPI code to not reconfigure bus dynamically.
2023-09-18 12:36:13 -07:00
Kwabena W. Agyeman
c37260df95
ports/mimxrt: Enable support for all py modules.
2023-09-16 22:24:49 -07:00
Kwabena W. Agyeman
4639b1eb2f
drivers: Make all spi based py modules cross platform.
2023-09-16 13:24:24 -07:00
Kwabena W. Agyeman
e46776795b
drivers: Upgrade SPI driver to support py drivers on all boards.
2023-09-16 13:21:33 -07:00
luzpaz
971f14daab
misc: Fix typos in src/omw subdirectory
...
Found via `codespell -q 3 -S "*.pgm,*.ppm,./src/hal,./src/drivers" -L als,dout,erro,extint,hsi,inout,ois,paeth,re-use,ser,serie`
2023-09-16 17:01:42 +00:00
iabdalkader
081731abd0
micropython: Remove MICROPY_STREAMS_POSIX_API from board config files.
2023-09-15 15:03:59 +02:00
Kwabena W. Agyeman
ed3e4ee89c
ports/imxrt/sensor: Fix sensor_set_xclk freq to accept any frequency.
2023-09-13 16:38:05 -07:00
Kwabena W. Agyeman
16c9faa179
sensors: Allow disabling settling time delays.
2023-09-10 18:47:57 -07:00
Ibrahim Abdelkader
d35b6f51d5
Merge pull request #1919 from kwagyeman/kwabena/mt9v034_exposure
...
sensors/mt9v0xx: Fix exposure calculation.
2023-09-09 19:28:56 +03:00
Kwabena W. Agyeman
b1a823f547
drivers: Move alloc alignment macros to the common header.
2023-09-08 10:49:24 -07:00
Ibrahim Abdelkader
3bb8d12a30
Merge pull request #1914 from kwagyeman/kwabena/fix_invalid_instructions
...
imlib/fmath: Fix invalid fp instruction usage on cortex-m4.
2023-09-08 11:50:57 +03:00
Kwabena W. Agyeman
2ee188c41b
sensors/mt9v0xx: Fix exposure calculation.
2023-09-07 18:19:05 -07:00
Kwabena W. Agyeman
ab0936a747
imlib/fmath: Fix invalid fp instruction usage on cortex-m4.
2023-09-07 18:12:16 -07:00
Kwabena W. Agyeman
a5066fd939
imlib: Fix int maybe breaking.
2023-09-01 19:27:55 -07:00
iabdalkader
8a90e070a8
misc: Bump firmware version.
2023-08-23 18:50:55 +02:00
Ibrahim Abdelkader
8ffedbd1f7
Merge pull request #1901 from openmv/omvrt_1060_pinout
...
ports/mimxrt: Update port to support OPENMV_RT1060 REV2.
2023-08-23 12:19:05 +03:00
Ibrahim Abdelkader
22bf517587
Merge pull request #1906 from kwagyeman/kwabena/fix_sd_card_detect
...
boards/OPENMV_RT1060: Fix SD Card Detection on power-on.
2023-08-23 12:10:06 +03:00
Kwabena W. Agyeman
3accc5a306
ports/mimxrt: Add rtc alarm/wakeup functionality.
2023-08-20 14:18:30 +02:00
iabdalkader
437a6cd525
ports/mimxrt: Update port to support OPENMV_RT1060 REV2.
2023-08-20 14:18:24 +02:00
Kai
b4ec242949
ports/imxrt: Fix compile error when disabling sdram.
2023-08-12 18:51:55 +08:00
Kwabena W. Agyeman
bd11076b87
boards/OPENMV_RT1060: Fix SD Card Detection on power-on.
2023-08-02 16:18:07 -07:00
Kwabena W. Agyeman
0695ebe506
boards/OPENMV_RT1060: Fix blinking LED polarity.
2023-07-31 11:40:39 -07:00
Ibrahim Abdelkader
90ab4dc12c
Merge pull request #1900 from openmv/docs_update
...
micropython: Update docs.
2023-07-22 02:33:36 +03:00
iabdalkader
ca628f1abe
micropython: Update docs.
2023-07-22 02:18:18 +03:00
Kwabena W. Agyeman
2a518eb224
misc: Handle short packets for debug mode in TinyUSB.
2023-07-16 13:31:12 -07:00
iabdalkader
26bd27bdbb
misc: Rename common header.
2023-07-04 12:53:23 +02:00
iabdalkader
0195473235
ports/stm32: Refactor I2C bus definitions.
2023-07-03 18:35:14 +02:00
iabdalkader
35ed56310d
misc: Format code.
2023-07-02 21:49:23 +02:00
iabdalkader
d3840037d4
misc: Disable formatting for auto-generated files and some types.
2023-07-02 16:42:15 +02:00
iabdalkader
187840a9f0
boards/OPENMV_RT1060: Add missing flash size macro.
2023-07-02 12:07:00 +02:00
iabdalkader
4f1152c749
imlib: refactor py blob code.
2023-07-02 11:51:36 +02:00
iabdalkader
1e7be46001
micropython: Update submodule.
...
* Add board config files.
2023-06-28 23:21:44 +02:00
iabdalkader
989e7cc029
boards/OPENMV_RT60: Add board config files.
2023-06-28 23:09:36 +02:00
iabdalkader
a7033e1b3a
ports/mimxrt: Add MIMXRT OMV port.
2023-06-28 22:53:03 +02:00
iabdalkader
9e6efd28c9
hal/mimxrt: Add MIMXRT HAL.
2023-06-28 22:53:00 +02:00
iabdalkader
8c34e2b713
ports/stm32: Call gc_sweep before deinitializing networking drivers.
...
* Move GC before any deinitializing any drivers as some of them
still need IRQs to clean up.
2023-06-28 17:17:27 +02:00
iabdalkader
e5b3604bd6
ports/stm32: Link CYW43 BTHCI.
...
* The default/weak bthci was used.
2023-06-27 21:37:57 +02:00
Ibrahim Abdelkader
e6572097b1
Merge pull request #1877 from openmv/gpio_hal_refactor
...
ports/stm32: Share GPIO IRQ descriptor with other ports.
2023-06-27 19:09:46 +03:00
iabdalkader
7e355bca88
ports/stm32: Share GPIO IRQ descriptor with other ports.
...
* Move GPIO IRQ descriptor to common HAL to share it with other ports,
and reduce the default descriptor size, while allow ports to add bits.
2023-06-27 18:01:17 +02:00
tejalbarnwal
2d8f3f94a1
lib/libtf: Update libtf regression to support 2D input.
...
updated tf_regregression to take ulab array as input
updated tf_regregression to take ulab array as input
updated libtf_regression function name
included ulab ndarray
updated libtf header file
2023-06-26 18:46:58 +05:30
iabdalkader
0e91aac4a3
lib/libtf: Update libtf to support 2D regression.
...
* Note libtf_regression_1Dinput_1Doutput is kept for backwards
compatibility.
2023-06-26 09:57:09 +02:00
Ibrahim Abdelkader
3fdad014f0
Merge pull request #1872 from openmv/pixart_spi_fix
...
drivers/pixart: Fix spi send/recv functions.
2023-06-24 22:38:40 +03:00
iabdalkader
b27aed8138
ports/stm32: Fix SPI HAL DMA/blocking transfers.
2023-06-24 21:12:20 +02:00
iabdalkader
c5ca54157d
drivers/pixart: Fix spi send/recv functions.
2023-06-24 21:11:51 +02:00
iabdalkader
cd9bac9558
ports/stm32: Switch IMU module to the new SPI HAL.
2023-06-17 23:10:17 +02:00
iabdalkader
8c1cb53c65
drivers/pixart: Switch to the new SPI HAL.
2023-06-17 20:37:28 +02:00
iabdalkader
dd9d803ce5
drivers/winc1500: Switch to the new SPI HAL.
2023-06-17 20:14:26 +02:00
iabdalkader
f68f6d70e4
sensors/lepton: Use new VOSPI/SPI HAL.
...
* This change makes lepton sensor driver completely generic,
by moving all of the VOSPI code to vospi.c, which in turn
uses the new OMV SPI HAL.
2023-06-17 19:21:34 +02:00
iabdalkader
28f808f54f
hal/omv: Add SPI HAL.
2023-06-17 17:52:49 +02:00
iabdalkader
67cd9727db
ports/stm32: Add DMA utils.
2023-06-17 13:25:29 +02:00
iabdalkader
6975a6c11c
ports/stm32: Refactor CEC module to use new GPIO HAL.
2023-06-10 22:31:45 +02:00
iabdalkader
e7b5a3f7e0
ports/all: Refactor cambus code.
...
* Rename cambus to omv_i2c for consistency with other HALs.
* Rename sensor I2C handle from bus to i2c_bus to allow adding
another handle (ex spi_bus).
2023-06-10 22:00:56 +02:00
iabdalkader
a1724d90dd
ports/stm32: Refactor all GPIO pin definitions.
2023-06-10 17:19:12 +02:00
iabdalkader
13bc0fa66d
hal: Add GPIO abstraction layer.
2023-06-10 17:19:08 +02:00
iabdalkader
4a2923534e
micropython: misc fixes and features for mimxrt.
2023-06-09 22:54:18 +02:00
iabdalkader
de7f161acd
sensors/ov7670: Fix CLKRC bypass/pre-scaler.
2023-05-25 15:39:11 +02:00
iabdalkader
275ce67269
ports/nrf: Fix sensor readout.
...
* D0 & D1 are swapped on ML kit.
2023-05-25 15:39:03 +02:00
iabdalkader
dcbda2bba3
boards/NANO33: Fix OV767x clkrc.
2023-05-25 15:38:54 +02:00
Ibrahim Abdelkader
20a51c7a1e
Merge pull request #1848 from kwagyeman/kwabena/enable_more_tensor_flow_ops
...
imlib/libtf: Update to the latest tensorflow API.
2023-05-22 22:09:49 +03:00
Kwabena W. Agyeman
1173667522
imlib/libtf: Update to the latest tensorflow API.
2023-05-22 11:47:04 -07:00
Ibrahim Abdelkader
531c656eb6
Merge pull request #1846 from openmv/rp2_license
...
ports/rp2: Add missing license header to cambus.c
2023-05-19 19:39:50 +03:00
iabdalkader
b01582eff4
ports/rp2: Add missing license header to cambus.c
2023-05-19 18:37:49 +02:00