mwilliams03 / pi-touchscreen-basic Goto Github PK
View Code? Open in Web Editor NEWA basic example of reading imput events from a touchscreen connected to a Raspberry Pi
A basic example of reading imput events from a touchscreen connected to a Raspberry Pi
In case anyone else requires a 32bpp method for put_pixel:
void put_pixel_32bpp(int x, int y, int r, int g, int b)
{
unsigned int pix_offset;
unsigned int c;
// calculate the pixel's byte offset inside the buffer
pix_offset = x*4 + y * fix.line_length;
//some magic to work out the color
c = (r << 16) + (g << 8) + (b << 0);
// write 'four bytes at once'
*((unsigned int*)(fbp + pix_offset)) = c;
}
with official raspberry 7" display no output.
touch is working.
Display output works until i start programm.
I tried with both, main.c and buttonExample.c
The blue button is mangled, it is displayed at both sides of the screen but cropped off.
Display: http://www.adafruit.com/product/1601
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.