You are viewing an older revision! See the latest version

BusOut

The BusOut interface is used to create a number of DigitalOut pins that can be written as one value.

Hello World!

Import program

00001 #include "mbed.h"
00002  
00003 BusOut myleds(LED1, LED2, LED3, LED4);
00004  
00005 int main() {
00006     while(1) {
00007         for(int i=0; i<16; i++) {
00008             myleds = i;
00009             wait(0.25);
00010         }
00011     }
00012 }

API

API summary

Import librarymbed

No documentation found.

Interface

The BusOut Interface can be used on any pin with a blue label, and also with the on-board LEDs (LED1-LED4)

The BusOut Interface can be used to set the state of the output pin, and also read back the current output state. Set the BusOut to zero to turn it off, or 1 to turn it on.

/media/uploads/chris/pinout-thumbnails.jpg
See the Pinout page for more details

All wikipages