Nathan Yonkee
/
Nucleo_toggle_ios
copy of example to toggle multiple IOs simultaneously
main.cpp
- Committer:
- tulanthoar
- Date:
- 2017-04-21
- Revision:
- 1:54c670dd698f
- Parent:
- 0:04d55bfd084e
File content as of revision 1:54c670dd698f:
#include "mbed.h" #define IOS (0xA0) // PA_5 + PA_7 PortOut myIOs(PortA, IOS); int main() { while(1) { myIOs = myIOs ^ IOS; // Toggle IOs level wait(0.5); // 500 ms } }