snitro / fbtft-ili9488 Goto Github PK
View Code? Open in Web Editor NEWLinux5.10 fbtft ili9488
Linux5.10 fbtft ili9488
armbian and orangepi zero plus ;
I don't know programming, so I followed some tutorials on the Internet.
MakeFile:
ifneq ($(KERNELRELEASE),)
obj-m += fb_ili9488.o
else
PWD=$(shell pwd)
KDIR=/usr/src/linux-headers-$(shell uname -r)
all:
clean:
endif
and get error:
Opi0plus:fb_ili9488:# make all
make -C /usr/src/linux-headers-6.6.21-current-sunxi64 M=/root/fb_ili9488 modules
make[1]: Entering directory '/usr/src/linux-headers-6.6.21-current-sunxi64'
CC [M] /root/fb_ili9488/fb_ili9488.o
/root/fb_ili9488/fb_ili9488.c: In function ‘write_vmem16_bus8’:
/root/fb_ili9488/fb_ili9488.c:98:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
98 | if ((int)(par->gpio.dc) != -1)
| ^
In file included from /root/fb_ili9488/fb_ili9488.c:13:
/root/fb_ili9488/fb_ili9488.c: At top level:
/root/fb_ili9488/fbtft.h:315:19: error: initialization of ‘void (*)(struct spi_device )’ from incompatible pointer type ‘int ()(struct spi_device *)’ [-Werror=incompatible-pointer-types]
315 | .remove = fbtft_driver_remove_spi,
| ^~~~~~~~~~~~~~~~~~~~~~~
/root/fb_ili9488/fb_ili9488.c:148:1: note: in expansion of macro ‘FBTFT_REGISTER_DRIVER’
148 | FBTFT_REGISTER_DRIVER(DRVNAME, "ilitek,ili9488", &display);
| ^~~~~~~~~~~~~~~~~~~~~
/root/fb_ili9488/fbtft.h:315:19: note: (near initialization for ‘fbtft_driver_spi_driver.remove’)
315 | .remove = fbtft_driver_remove_spi,
| ^~~~~~~~~~~~~~~~~~~~~~~
/root/fb_ili9488/fb_ili9488.c:148:1: note: in expansion of macro ‘FBTFT_REGISTER_DRIVER’
148 | FBTFT_REGISTER_DRIVER(DRVNAME, "ilitek,ili9488", &display);
| ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:243: /root/fb_ili9488/fb_ili9488.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.6.21-current-sunxi64/Makefile:1915: /root/fb_ili9488] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.6.21-current-sunxi64'
make: *** [Makefile:7: all] Error 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.