Parameter " Physical pin of the controller"
The parameter "physical pin of the controller" is intended for use in the block directly of physical pins of the controller.
In the parameter settings, you can filter the available physical pins by their available functions.
Attention! Filtering is based on the logic of And.
That is, if you select the digital input and Analog input function, only pins that can work both as a digital input and as an analog input will be available for selection.
Pins that have only a digital input function or only an analog input will not be available.
When setting up a block in the project, the pin is selected when the "Select" button is clicked.
This opens the selection window of the pin.
This window shows the free project pins corresponding to the function filter configured in the parameter settings.
After selecting a pin, it is bound to the block and becomes inaccessible to other blocks of the project.
The composition of tags to use in the code and conditions depends on the selected pin functions. A corresponding tag is created for each function. Here is a complete list of possible tags.
After selecting a pin, it is bound to the block and becomes inaccessible to other blocks of the project.
The composition of tags to use in the code and conditions depends on the selected pin functions. A corresponding tag is created for each function. Here is a complete list of possible tags.
Example of using the "Physical pin of the controller" parameter»
Let's create an abstract block that, if there is a log 1 on some discrete input, will output a string from the UART to the screen.
First, create the "Resolution" parameter and set the "Digital input" filter..
First, create the "Resolution" parameter and set the "Digital input" filter..
As a result of compilation, with the selected pin 4, we get the following code.
if (digitalRead (4))
{
myOLED.print(readingString_17578801, (0), (0));
readingString_17578801 ="";
}
if (digitalRead (4))
{
myOLED.print(readingString_17578801, (0), (0));
readingString_17578801 ="";
}