This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Digital write example

Digital write example

Code

while : true {
    digital_write(P1_31, true);
}
  • Following code works on PocketBeagle, to use on other boards, please change the pins accordingly.

Explanation

This code runs a never ending loop, since it is while : true. Inside while it sets header pin P1_31 to HIGH.