Used to test portrait display
Test can refer to test.ts
If you find a problem with the https://makecode.microbit.org/# programming website, you can't download it. Try https://makecode.microbit.org/v0 to edit your project. For reference, please refer to our user manual.
If you find that there are many places to change, such as the function name changed you can find the answer here, Or contact us
1.Initiation: You need to initial LCD module first.
2.Clear the screen: Clear the screen to white. Create an buffer on RAM with the resolution size 160*128 and initial it to white.
3.Set the backlight:
4.Send display data: With this block, it will send one frame of buffer to the LCD and display. Note: it is always following drawing operation.
5.Send widows display data: Sometimes it is not necessary to refresh the entire screen data, only need to display part of the window data.
6.Clear screen and cache:
8.Draw point: Place the block before send display data. You can choose the position, color and size. For the screen, (1,1) is on top-left, and (160,128) is on bottom-right There are tow way to set the color, the one is use the color block as above, another is to set the value (RGB565) by drag the slider.
9.Draw line: You can choose the the line's position, color, size and its sytle.
#More parameters can be found in test.ts for a detailed understanding.
- for PXT/microbit (The metadata above is needed for package search.)