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.
Dependencies: AOTTrigon I2CEEPROM MCP4922 mbed
Revision 6:76e79bf6b571, committed 2014-12-25
- Comitter:
- kb10uy
- Date:
- Thu Dec 25 04:41:44 2014 +0000
- Parent:
- 5:6f060709aa23
- Child:
- 7:439c57c20593
- Commit message:
- AOTTrigon??
Changed in this revision
| AOTTrigon.lib | Show annotated file Show diff for this revision Revisions of this file |
| Main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/AOTTrigon.lib Tue Dec 23 07:42:11 2014 +0000 +++ b/AOTTrigon.lib Thu Dec 25 04:41:44 2014 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/kb10uy/code/AOTTrigon/#d8c9637a5f09 +http://developer.mbed.org/users/kb10uy/code/AOTTrigon/#ba78a1dd8b55
--- a/Main.cpp Tue Dec 23 07:42:11 2014 +0000
+++ b/Main.cpp Thu Dec 25 04:41:44 2014 +0000
@@ -29,6 +29,6 @@
void tick_sampling() {
ntime=master.read_us()/1000000.0;
- for(int i=0;i<64;i++) t.sine(M_PI*2.0*freq*ntime);
- output.write(MCP4922::DAC_A, t.sine(M_PI*2.0*freq*ntime)/2.0+0.5);
+ for(int i=0;i<64;i++) t.sin(M_PI*2.0*freq*ntime);
+ output.write(MCP4922::DAC_A, t.sin(M_PI*2.0*freq*ntime)/2.0+0.5);
}
\ No newline at end of file