RoCorbera / BlueVGA

VGA library for STM32F103C (BluePill) that can manipulate a screen with 28x30 tiles with 8x8 pixels each, in a total resolution of 224x240 pixels with 8 colors using a very low footprint
Other
61 stars 11 forks source link

show picture #16

Open emid-alipour opened 3 months ago

emid-alipour commented 3 months ago

Hi, how can i show 64*44 image in red color and show text behind it in green color? do you have any sample? Regards.

RoCorbera commented 3 weeks ago

64 is a 8 bits x 8 characters. 44 is a 8 bits x 6 characters (with extra 4 bit in this case). each bit is a pixel. Every 8x8 bits is a character bit map that has a foreground and backgroung color.

Therefore, it shall be something like this: Based on this example https://github.com/RoCorbera/BlueVGA/tree/master/examples/graphDemo_SineCurve I have added another example in https://github.com/RoCorbera/BlueVGA/blob/master/examples/Simple_Image/Simple_Image.ino