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.
Revision 0:831544bc8e73, committed 2021-11-03
- Comitter:
- domemort
- Date:
- Wed Nov 03 15:33:10 2021 +0000
- Commit message:
- -
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Nov 03 15:33:10 2021 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+
+PwmOut sine(D6);
+static float samples[]={0.5000, 0.6623, 0.8071, 0.9186, 0.9847, 0.9983, 0.9579, 0.8679, 0.7380, 0.5823, 0.4177, 0.2620, 0.1321, 0.0421, 0.0017, 0.0153, 0.0814, 0.1929, 0.3377, 0.5000};
+
+int main(){
+ sine.period_us(100);
+ while (1){
+ for(int i=0; i<2; i=i++){
+ sine=samples[i];
+ wait(0.01);
+ }
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Nov 03 15:33:10 2021 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file