![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
The program uses the BusInout Class to make a key_controlled counter from 0-9
Dependencies: mbed
Fork of BusInOut_HelloWorld by
main.cpp
- Committer:
- stevep
- Date:
- 2013-02-12
- Revision:
- 1:075e57eccf3a
- Parent:
- 0:91a6f3d1b2f0
- Child:
- 2:e9a810015812
File content as of revision 1:075e57eccf3a:
#include "mbed.h" BusInOut pins(p5, p10, p7); int main() { while(1) { pins.output(); pins = 0x3; wait(1); pins.input(); wait(1); if(pins == 0x6) { printf("Hello!\n"); } } }