GroupA / Mbed 2 deprecated WaG_final

Dependencies:   mbed

Fork of Lab_6_WaG by GroupA

Committer:
phn10
Date:
Fri Mar 23 21:24:26 2018 +0000
Revision:
40:4e82369f337c
Parent:
38:57af77435ae1
Child:
49:80d4ffabec16
testing the function test_phototransistors(). The code works fine, but there are something wrong with Phototransistors, lighting doesn't increase signal voltage. Need to check with Paul.

Who changed what in which revision?

UserRevisionLine numberNew 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 24:0691bfc946e9 11 * Last Modified: 03/20/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
spm71 34:378a49e5b15f 21
spm71 24:0691bfc946e9 22 void ana_init();
spm71 38:57af77435ae1 23 void ana_scan_mux(float * an_array, int no_of_channels);
phn10 40:4e82369f337c 24 void test_phototransistors ();
spm71 38:57af77435ae1 25
spm71 38:57af77435ae1 26 #endif