Digital write example
Schematic
;
}
- Following code works on PocketBeagle, to use on other boards, please change the pins accordingly.
Explaination
This code runs a never ending loop, since it is while : true. Inside while it sets header pin P1_31 to HIGH.