InterruptIn style DigitalIn debounced with callbacks for pin state change and pin state hold. Fork of original https://os.mbed.com/users/AjK/code/PinDetect/ and modification for compatibility with MbedOS6+
Revision 4:947c59b48cb8, committed 2022-06-09
- Comitter:
- JohnnyK
- Date:
- Thu Jun 09 18:25:42 2022 +0000
- Parent:
- 3:911efbcb34b2
- Commit message:
- example correction
Changed in this revision
example.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/example.h Thu Jun 09 18:17:18 2022 +0000 +++ b/example.h Thu Jun 09 18:25:42 2022 +0000 @@ -1,5 +1,7 @@ /* Copyright (c) 2010 Andy Kirkham + Copyright (c) 2022 Jan kamidra + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -106,7 +108,7 @@ while( 1 ) { led1 = !led1; - wait( 0.2 ); + thread_sleep_for(200); } }