Engee documentation

Artery DI

Reading the digital input of the microcontroller.

blockType: CFunction

Path in the library:

/Interfaces/Targets/Artery/Artery DI

Description

To work with the block, install/update the support package. equipment.

Block Artery DI It is used to read the status of the digital input of the microcontroller.

Configuring the AT32 Workbench

  1. In the AT32 Workbench, select the desired GPIO pin.

  2. Set it up as Digital Input:

    artery di gpio input

  3. If necessary, adjust the lift (Pull-Up / Pull-Down).

  4. Generate the project (Generate Code).

Ports

Output

# State — digital input status
scalar

Details
Data types

UInt8

Complex numbers support

No

Parameters

Main group

# Порт: — microcontroller’s GPIO port
A | B | C | D | E | F | G | H

Details
Values

A | B | C | D | E | F | G | H

Default value

C

Program usage name

m_port

Tunable

No

Evaluatable

Yes

# Ввод: — GPIO pin number
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15

Details
Values

0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15

Default value

8

Program usage name

m_input

Tunable

No

Evaluatable

Yes