3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.


Build your own Wifi radio

Step 8Graphics in Bascom

Graphics in Bascom
When having a graphical LCD, it's always nice to have some graphics on it. So you can either draw everything pixel by pixel (good luck!) or you can import premade graphics. The way to do it in Bascom is as follows:
  1. Draw an image in your favorite program. Don't forget the maximum dimensions (in my case 240*128)
  2. Save it as a monochrome bitmap.
  3. Run Bascom, goto Tools -> Graphic converter.
  4. 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 StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
91
Followers
25
Author:janw
My hobbies are mainly music and electronics but I like to read and learn about a lot more than that.