Hallo,
ich habe mir eine Bascom Libary für meinen TFT Display oranisiert die
mir bilder von der SD Karte anzeigt, das problem ist ich weiß wie bzw
womit ich die Bilddatein z.b. BMP in .BIN wandeln soll, der Bascom Code
sieht so aus:
1 | Sub Lcd_pic(byval Xs As Byte , Byval Ys As Byte , Byval Breite As Byte , Byval Height As Byte , Byval Bnama As String)
|
2 | Local Zael As Byte , Xb As Byte
|
3 | Local Line_len As Byte , Llen As Word
|
4 |
|
5 | Line_len = 2 * Breite
|
6 |
|
7 | Xb = Breite + Xs 'X end
|
8 | Decr Xb
|
9 | Call Lcd_set_window(xs , Ys , Xb , Height)
|
10 |
|
11 | Lcd_cs = 1
|
12 | Lcd_dc = 1
|
13 |
|
14 | Reset Mmc_cs
|
15 | Open Bnama For Binary As #10
|
16 |
|
17 | For Zael = 1 To Height ' bis Y end Position
|
18 | Mmc_cs = 0
|
19 | Get #10 , Rgb_data(1) , , Line_len 'Daten einlesen
|
20 | Mmc_cs = 1
|
21 | Lcd_cs = 0
|
22 | Spiout Rgb_data(1) , Line_len 'max Pic Breite 127 Pixel
|
23 |
|
24 | ' For Llen = 1 To Line_len 'Pic with 128 Pixel
|
25 | ' Spiout Rgb_data(llen) , 1
|
26 | ' Next
|
27 |
|
28 | Lcd_cs = 1
|
29 | Next Zael
|
30 | Close #10
|
31 | End Sub
|