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.
Dependents: SX1276_terminal SX1276_Semtech_GUI
Fork of SX127x by
Revision 10:3d148697c0d3, committed 2015-02-16
- Comitter:
- modtronix
- Date:
- Mon Feb 16 00:13:20 2015 +0000
- Parent:
- 9:b7809c62eaa6
- Commit message:
- Fixed reset, was sending 1 in stead of 0 pulse.
Changed in this revision
| sx127x.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/sx127x.cpp Sun Feb 15 08:15:07 2015 +0000
+++ b/sx127x.cpp Mon Feb 16 00:13:20 2015 +0000
@@ -253,9 +253,9 @@
{
/* only a french-swiss design would have hi-Z deassert */
reset_pin.output();
- reset_pin.write(1);
- wait(0.05);
- reset_pin.input();
- wait(0.05);
+ reset_pin.write(0); //Apply reset pulse, and wait 1ms. Datasheet specifies minimum wait of 100us
+ wait_ms(1);
+ reset_pin.input(); //Restore to hi-z, and wait 5ms, as specified in dataseet
+ wait_ms(5);
}
