Giter Club home page Giter Club logo

wslcd1in8's Introduction

LCD1in8

waveshare electronics

Waveshare_logo.png

Package product

https://www.waveshare.com/1.8inch-lcd-for-micro-bit.htm

test

Test can refer to test.ts

user

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. Chinese wiki: http://www.waveshare.net/wiki/1.8inch_LCD_for_micro:bit English wiki: https://www.waveshare.com/wiki/1.8inch_LCD_for_micro:bit

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.

block: LCD1IN8 Init. javascript: LCD_Init()

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.

block: Clear Clear screen and cache. javascript: LCD_Init()

3.Set the backlight:

block: Set back light level. javascript: LCD_SetBL()

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.

block: Send display data. javascript: LCD_Display()

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.

block: Send widows display data. javascript: LCD_DisplayWindows()

6.Clear screen and cache:

block: Clear screen and cache. javascript: LCD_Clear()

7.Fill the full screen color: block: Filling Color. javascript: LCD_Filling()

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.

block: Draw Point. javascript: DrawPoint()

9.Draw line: You can choose the the line's position, color, size and its sytle.

block: Draw Line. javascript: DrawLine()

10.Draw rectange:

block: Draw Rectange. javascript: DrawRectangle()

11.Draw Circle:

block: Draw Circle. javascript: DrawCirclee()

12.Show String:

block: Show String. javascript: DisString()

13.Show number:

block: Show number. javascript: DisNumber()

#More parameters can be found in test.ts for a detailed understanding.

License

MIT

Supported targets

  • for PXT/microbit (The metadata above is needed for package search.)

wslcd1in8's People

Contributors

hnwangkg-ezio avatar waveshare avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.