Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 12 months ago.
problem with vga display?
i want to display a monochrome image using mbed. but lcd is not showing anything.
#include "mbed.h" DigitalOut vs(p14); DigitalOut hs(p15); //DigitalOut r(p5); DigitalOut g(p6); DigitalOut b(p7); AnalogOut r(p18); unsigned char a[640][480]; int main() { while(1) { vs=1; hs=1; wait(0.00001585); vs=0; hs=0; wait(0.00001585); hs=1; wait(0.00001585); hs=0; wait(0.00001585); vs=1; hs=1; for(int i=0;i<=480;i++) { for(int j=0;j<=640;j++) { r=0.21; g=0; b=0; } hs=0; wait(0.0000317); hs=1; } } }