4180 lab 1
Dependencies: mbed MCP23S17 PinDetect USBDevice
Revision 9:be04caf5f990, committed 2020-01-21
- Comitter:
- emilywilson
- Date:
- Tue Jan 21 20:37:31 2020 +0000
- Parent:
- 8:a5689a2b6af3
- Child:
- 10:0886afdfb170
- Commit message:
- part 9 changes
Changed in this revision
| part9.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/part9.h Tue Jan 21 20:20:16 2020 +0000
+++ b/part9.h Tue Jan 21 20:37:31 2020 +0000
@@ -8,8 +8,7 @@
int run_part9() {
while (1) {
for (double i = 0; i < 2*PI; i += (2*PI/N_SAMPLES) {
- aOut = (sin(i) + 1.0) * (3.3 / 2.0);
- wait(0.1);
+ aOut = (sin(i) * 0.5) + 0.5;
}
}
}
\ No newline at end of file