BusIn HelloWorld

Fork of BusIn_HelloWorld by Mbed

Use

BusIn is an abstraction that takes any pins and makes them appear as though they are linearly memory mapped for ease of use. This abstraction is useful for checking multiple inputs in a single pass. In general this abstraction can be used to make code less cluttered, clearer, and take less time to write.

Note

Please pay attention to the ordering of pins in the initialization. The order pins are initialized in are the reverse order that bits are OR'd together.

API

API reference.

Import librarymbed

No documentation found.
Revision:
2:b22e7d5a6872
Parent:
0:5e474ece410b
Child:
3:ac45ca465b45
--- a/main.cpp	Sun Sep 21 17:40:50 2014 +0000
+++ b/main.cpp	Sun Sep 21 17:56:02 2014 +0000
@@ -1,6 +1,6 @@
 #include "mbed.h"
 
-BusIn nibble(p5, p6, p18, p11);
+BusIn nibble(p5, p6, p18, p11); // change pins according to platform
 
 int main() {
     while(1) {