Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
main.cpp
- Committer:
- Ben51
- Date:
- 2018-07-06
- Revision:
- 0:7aa83f9f0178
File content as of revision 0:7aa83f9f0178:
// 04b_Taster_BusIn // hierbei werden die Taster auf der Multi-Functionshield-Platine genutzt #include "mbed.h" // Achtung LSB zuerst BusIn taster(PA_1,PA_4,PB_0); Serial pc(SERIAL_TX, SERIAL_RX); int main() { while (1) { int tasterValue = taster.read(); // Kurzform: int tasterValue = taster; pc.printf("%d ",tasterValue); wait(1.0); } }