Skip to content

Generate an array of chars for displaying on Nokia 5110 LCD using Phillips PCD8544 LCD Controller

License

Notifications You must be signed in to change notification settings

johnb-xp/Bitmap-to-C-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bitmap-to-C-Converter

Generate an array of chars for displaying on 48x84px Nokia 5110 LCD using Phillips PCD8544 LCD Controller. Used at the Milwaukee School of Engineering with a MSP 432 microcontroller development board.
You can run the program in your browser: https://scratch.mit.edu/projects/441934357/

Written in Scratch 3.0
Made for Dr. Widder's EE 2920 class

How to use:

  1. Create an 84x48 monochrome bitmap file
  2. Resize to 420x240
  3. Open project (the .sb3 file) in Scratch. Click "See Inside", then select Stage, Backdrops, upload an image and select the image you want to scan.
  4. Click the Run button (slow mode shows you exactly what is happening, drag the Fast Mode slider to 0 for slow mode)
  5. Right click the list that pops up, the select "Export"
  6. Paste exported text file with code below into a file named "bitmap.h". Delete the last comma in the list.
  7. Add more static const char [] arrays for more bitmaps


Code for .h file:

#ifndef BITMAP_H__

#define BITMAP_H__

static const char bilkeyconvert [] = {

// PASTE HERE

};

#endif BITMAP_H_

About

Generate an array of chars for displaying on Nokia 5110 LCD using Phillips PCD8544 LCD Controller

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published