##// END OF EJS Templates
Removed error on fat32 library, seems now to be able navigate among sectors in...
Removed error on fat32 library, seems now to be able navigate among sectors in both directions. Improved SDLCD drawing performances by almost 1000x.

File last commit:

r68:104125d87b89 dev_alexis
r68:104125d87b89 dev_alexis
Show More
test_lcd.c
43 lines | 936 B | text/x-c | CLexer
Added Simulator target to run code on x86 and debug functions....
r63 #include <stdio.h>
#include <fat32.h>
#include <gpio.h>
#include <uart.h>
#include <bsp.h>
#include <core.h>
#include <VS10XX.h>
#include <bsp.h>
#include <spi.h>
#include <sdcard.h>
#include <sdcard-spi.h>
#include <fat32.h>
#include <ucdirent.h>
#include <string.h>
#include <ili9328.h>
Removed error on fat32 library, seems now to be able navigate among sectors in...
r68 uint16_t buff[50*50];
Added Simulator target to run code on x86 and debug functions....
r63
void test_Block_Move(LCD_t* LCD,int x,int y,int w,int h,int color)
{
// LCD->paintFilRect(LCD,x,y,w,h,0,0,color);
}
Removed error on fat32 library, seems now to be able navigate among sectors in...
r68 int coef=1;
void test_address(LCD_t* LCD)
{
LCD->paintFilRect(LCD,0,0,LCD->width,LCD->height,0,0,0xFFFF);
uint16_t color[1];
for(int y=0;y<320;y++)
{
for(int x=0;x<240;x++)
{
color[0]=((x/10*y*x)/((y+x+1)))+coef;
coef = color[0];
LCD->paint(LCD,color,x,y,1,1);
//delay_100us(100);
}
}
LCD->getPix(LCD,buff,50,50,50,50);
// delay_100us(5000);
LCD->paint(LCD,buff,50,50,50,50);
delay_100us(500);
}