Documentation

Una is developed by Una Technologies Limited

All rights reserved

© 2022 Una Technologies Limited

Print

Modifying port value

Digital write port to

				
					{"blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"Grove_digitalWrite\" disabled=\"true\" x=\"23\" y=\"202\"><field name=\"port\">GroveDigitalPort.D5</field><value name=\"signal\"><shadow type=\"math_number\" disabled=\"true\"><field name=\"NUM\">0</field></shadow></value></block></xml>"}
				
			

This is used to make modify the port value.

Parameters: N/A

Condition: D5 (Default)/D16/D18/D22/D26

Output: Number
Sample code:

				
					{"blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"pxt-on-start\" x=\"0\" y=\"0\"><statement name=\"HANDLER\"><block type=\"Grove_digitalWrite\"><field name=\"port\">GroveDigitalPort.D5</field><value name=\"signal\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow></value></block></statement></block></xml>"}
				
			

The output:

Digital Read Port - Output
Digital Write Port to - Output 2
Previous Get the port result