BusIn

This content relates to a deprecated version of Mbed

Mbed 2 is now deprecated. For the latest version please see the Mbed OS documentation.

For the latest BusIn API, please see BusIn.

The BusIn interface is used to create a number of DigitalIn pins that can be read as one value.

Any of the numbered mbed pins can be used as a DigitalIn in the BusIn.

Hello World!

Import program

00001 #include "mbed.h"
00002 
00003 BusIn nibble(p5, p6, p18, p11);
00004 
00005 int main() {
00006     while(1) {
00007         switch(nibble) {
00008             case 0x3: printf("Hello!\n"); break; // p5 and p6 are 1
00009             case 0x8: printf("World!\n"); break; // p11 is 1
00010         }
00011     }
00012 }

API

API summary

Import librarymbed

No documentation found.

Interface

The BusIn Interface can use any pins with a blue label.

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

All wikipages