Calculator

Feature introduction

Input numbers

  • Get press string Return keyboard character

  • Get press button int value Return keyboard ASIIC value

  • Clear press string Clear input characters

  • Delete press string last byte Delete the last byte entered

  • is new button pressed Press the button to return true

Usage

The screen displays the entered number

Encoder

Feature introduction

Read encoder value

  • Set LED pos color Set the specified LED color

  • Clear encode value to zero Encoder value becomes zero

  • Get encode value Return encode value

  • Get encode direction Return the direction of rotation

  • is encode pressed Return True when the encoder knob is pressed

Usage

The screen displays the encoder value and press the knob to return to zero.

FINGER

Feature introduction

Read fingerprint information

  • get state Return sensor status

  • get access Return user rights

  • get id Return ID

  • remove All Remove all fingerprint information

  • remove faces_finger id Remove specified fingerprint ID

  • faces_finger add user id access Add fingerprint information

  • faces_finger read user with id access Verify fingerprint successfully executed program

  • faces_finger getUnknow Read unknown fingerprint information execution program

Usage

Read the fingerprint information, the light turns green if it matches. Otherwise the light turns red.

GameBoy

Feature introduction

Read the key value of the gameboy

  • Get is press Return button status, continuous detection

  • Get was pressed Return button status, check once

Usage

If the up button is pressed, light turns green. If the down button is pressed, light turns red.

Joystick

Feature introduction

Return joystick data

  • Get X value Return X-axis direction data

  • Get Y value Return Y-axis direction data

  • Is pressed Return True when the button is pressed

  • Get reverse X value Return X-axis reverse data

  • Get reverse Y value Return y-axis reverse data

  • Set LED pos color Set the color of the LED in specified place

Usage

The screen displays the joystick data

KeyBoard

Feature introduction

Return keyboard key data

  • Get press string Return button character

  • Clear press string Clear input characters

  • Delete press string last byte Delete the last byte entered

  • Get press button int value Return button ASIIC value

  • Is new button pressed Return true if the button is pressed

Usage

The screen displays the input number

RFID

Feature introduction

Return RFID card data

  • read string from addr Read data from the specified address

  • write to addr Write data to address

  • card near Return true if the RFID card is close

  • card uid Return RFID card UID

Usage

Screen displays RFID card data

On This Page