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: mbed
Fork of Lab_6_WaG by
analog.h@72:aec869655869, 2018-04-23 (annotated)
- Committer:
- phn10
- Date:
- Mon Apr 23 21:21:29 2018 +0000
- Revision:
- 72:aec869655869
- Parent:
- 56:048b30c9f2a1
- Child:
- 78:84ce90a76594
fixed the LED not light up in the gnoll() function. 2 issues still need to be improved:; 1. add a wait() after spi_send which light up the LED, or else the led won't light up.; 2. there is still some lagging between when laser light up and LED light up
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
spm71 | 24:0691bfc946e9 | 1 | /****************************************************************************** |
spm71 | 24:0691bfc946e9 | 2 | * EECS 397 |
spm71 | 24:0691bfc946e9 | 3 | * |
spm71 | 24:0691bfc946e9 | 4 | * Assignment Name: Lab 6: WaG |
spm71 | 24:0691bfc946e9 | 5 | * |
spm71 | 24:0691bfc946e9 | 6 | * Authors: Sam Morrison and Phong Nguyen |
spm71 | 24:0691bfc946e9 | 7 | * File name: analog.h |
spm71 | 24:0691bfc946e9 | 8 | * Purpose: Header for analog functions |
spm71 | 24:0691bfc946e9 | 9 | * |
spm71 | 24:0691bfc946e9 | 10 | * Created: 03/20/2018 |
spm71 | 56:048b30c9f2a1 | 11 | * Last Modified: 04/06/2018 |
spm71 | 24:0691bfc946e9 | 12 | * |
spm71 | 24:0691bfc946e9 | 13 | ******************************************************************************/ |
spm71 | 38:57af77435ae1 | 14 | #ifndef ANALOG_H |
spm71 | 38:57af77435ae1 | 15 | #define ANALOG_H |
spm71 | 24:0691bfc946e9 | 16 | |
spm71 | 24:0691bfc946e9 | 17 | #include "mbed.h" |
spm71 | 24:0691bfc946e9 | 18 | #include "io_pins.h" |
spm71 | 24:0691bfc946e9 | 19 | |
spm71 | 34:378a49e5b15f | 20 | #define MUX_CHANS 16 |
phn10 | 72:aec869655869 | 21 | #define PTTHRESH 1.3 /// previously 2.0 |
spm71 | 34:378a49e5b15f | 22 | |
spm71 | 24:0691bfc946e9 | 23 | void ana_init(); |
spm71 | 38:57af77435ae1 | 24 | void ana_scan_mux(float * an_array, int no_of_channels); |
phn10 | 40:4e82369f337c | 25 | void test_phototransistors (); |
spm71 | 38:57af77435ae1 | 26 | |
spm71 | 38:57af77435ae1 | 27 | #endif |