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.
INTERFACE.h
00001 #include "mbed.h" 00002 #include "definitions.h" 00003 00004 class INTERFACE{ 00005 public: 00006 INTERFACE(PinName Button,PinName Red,PinName Green,PinName Blue,PinName TortillaPin,PinName TempReady); 00007 void Init(void); 00008 void Home(void); 00009 bool getStart(void); 00010 void setLED(int r,int g,int b); 00011 void flash(void); 00012 int getFlashTimer(); 00013 void setFlashTimer(int t); 00014 bool getFlash(void); 00015 void setFlash(bool state); 00016 void check(void); 00017 int getTortilla(void); 00018 private: 00019 //Pinout 00020 DigitalIn Start; 00021 DigitalOut StartRED; 00022 DigitalOut StartGREEN; 00023 DigitalOut StartBLUE; 00024 AnalogIn Tortilla; 00025 DigitalOut TempLED; 00026 /*BOARD LEDS*/ 00027 DigitalOut NXP_LED1; 00028 DigitalOut NXP_LED2; 00029 DigitalOut NXP_LED3; 00030 DigitalOut NXP_LED4; 00031 //Led Memory 00032 int redState; 00033 int greenState; 00034 int blueState; 00035 //Flasher control 00036 int FlashTimer; 00037 bool Flash; 00038 bool StartLatch; 00039 //Start Button 00040 int StartTimer; 00041 };//INTERFACE
Generated on Wed Jul 20 2022 02:15:49 by
1.7.2