Step 8Graphics in Bascom
- Draw an image in your favorite program. Don't forget the maximum dimensions (in my case 240*128)
- Save it as a monochrome bitmap.
- Run Bascom, goto Tools -> Graphic converter.
- A window opens, set the dimentions of your LCD, load your image and save it in the .bgf format. Don't forget to set the font to the type you are using.
Once you have converted the bitmap, can use it in your code. You need to include the bgf file to be able to use it.
Cls
Showpic X, Y, Image
End
Image:
$bgf "image.bgf"
The X and Y parameters specify where the picture must be displayed. X and Y must be 0 or a multiple of 8. The picture height and width must also be a multiple of 8.
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|



















































