Happy New year !!!I have built a port for my STM32L496 and I would like to include this library:
https://github.com/russhughes/st7789_mpy
I followed the instructions but I don't understand how the link between the port and the library.
I have :Code: Select all
ls /Documents micropython st7789_mpy
For my port :Code: Select all
cd /Documents/st7789_mpy make USER_C_MODULES=../../../../st7789_mpy/st7789/micropython.cmake ... ok
Code: Select all
cd /Documents/micropython make -C mpy-cross .... ok
At which step I have to include the st7789 library?Code: Select all
cd /Documents/micropython/port/stm32 make BOARD=STM32L496G-DISC submodules ... ok make BOARD=STM32L496G-DISC deploy-stlink ... ok
I don't understand the process
Update
Now i have an error of build
Code: Select all
/home/pat/Documents/st7789_mpy/st7789/st7789.c: In function 'RotatePolygon':
/home/pat/Documents/st7789_mpy/st7789/st7789.c:1687:24: error: conversion from 'double' to 'mp_float_t' {aka 'float'} may change value [-Werror=float-conversion]
1687 | mp_float_t cosAngle = cos(angle);
| ^~~
/home/pat/Documents/st7789_mpy/st7789/st7789.c:1688:24: error: conversion from 'double' to 'mp_float_t' {aka 'float'} may change value [-Werror=float-conversion]
1688 | mp_float_t sinAngle = sin(angle);
| ^~~
cc1: all warnings being treated as errors
make: *** [../../py/mkrules.mk:77: build-STM32L496GDISC/st7789/st7789.o] Error 1
Thank you