![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
chad
Dependencies: MCP23017 WattBob_TextLCD mbed-rtos mbed
Diff: main.h
- Revision:
- 20:aeb7b7044c31
- Parent:
- 19:1fecb6fa14a2
--- a/main.h Tue Apr 04 13:47:53 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +0,0 @@ -#include "mbed.h" -#include "MCP23017.h" -#include "WattBob_TextLCD.h" -#include "rtos.h" -#include "Servo.h" - -#define BACK_LIGHT_ON(INTERFACE) INTERFACE->write_bit(1,BL_BIT) -#define BACK_LIGHT_OFF(INTERFACE) INTERFACE->write_bit(0,BL_BIT) - -extern MCP23017 *par_port; // pointer to 16-bit parallel I/O chip -extern WattBob_TextLCD *lcd; // pointer to 2*16 character LCD object - -extern Serial pc; - -// Analogue Input -extern AnalogIn Accel; // Accelerator Pedal Input -extern AnalogIn Brake; // Brake Pedal Input - -// Digital Input -extern DigitalIn Ignit; // Engine On/Off -extern DigitalIn SideL; // Side Light On/Off -extern DigitalIn Indi_L; // Left indicator switch -extern DigitalIn Indi_R; // Right idicator switch - -// Analogue Output -extern Servo SpeedIndicator; // Speed Indicator Servo - -// Digital Output -extern DigitalOut Ignit_LED; // Ignition LED Indicator -extern DigitalOut SideL_LED; // Side Light Indicator -extern DigitalOut Indi_L_LED; // Left Indicator LED -extern DigitalOut Indi_R_LED; // Right Indicator LED - -extern DigitalOut O_S_LED; // Overspeed LED (REDBOX) - -extern float Accel_Reg; -extern float Brake_Reg; - -extern float p; - -extern float Avg_Speed; -extern float Speed_In; -extern float Speed_0; -extern float Speed_1; -extern float Speed_2; - -extern float Dist; - - -