Funzioni di IO varie con seriale asincrona
Dependents: Nucleo_AsyncSerialIO
Fork of IOFuncLib by
Diff: IOFuncLib.cpp
- Revision:
- 15:a97e5d4fe3d9
- Parent:
- 14:69aa07aec21f
- Child:
- 16:e2a2e0dd6c1b
--- a/IOFuncLib.cpp Wed Sep 09 20:07:00 2015 +0000 +++ b/IOFuncLib.cpp Wed Sep 23 23:56:40 2015 +0000 @@ -6,14 +6,15 @@ // FLASHER Flasher::Flasher(PinName pin) : _pin(pin) { - _pin = 0; + _pin = 1; } void Flasher::flash(int n) { for(int i=0; i<n*2; i++) { _pin = !_pin; - wait_ms(50); + wait(0.05f); + // wait_ms(50); } }