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
inc/menu.h@6:39442d493098, 2018-12-03 (annotated)
- Committer:
- mfwic
- Date:
- Mon Dec 03 01:03:14 2018 +0000
- Revision:
- 6:39442d493098
- Parent:
- 3:d8948c5b2951
- Child:
- 7:860b3a8275cb
Added data line with periodic refresh.; Added MY12 menu function.; Fixed menu functions MULT, BRDS, MY12 so that commandData is properly assigned, LUT is used, and settings displayed.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mfwic | 1:9f8583ba2431 | 1 | //------------------------------------------------------------------------------- |
mfwic | 1:9f8583ba2431 | 2 | // |
mfwic | 1:9f8583ba2431 | 3 | // Treehouse Inc. |
mfwic | 1:9f8583ba2431 | 4 | // Colorado Springs, Colorado |
mfwic | 1:9f8583ba2431 | 5 | // |
mfwic | 1:9f8583ba2431 | 6 | // Copyright (c) 2016 by Treehouse Designs Inc. |
mfwic | 1:9f8583ba2431 | 7 | // |
mfwic | 1:9f8583ba2431 | 8 | // This code is the property of Treehouse, Inc. (Treehouse) and may not be redistributed |
mfwic | 1:9f8583ba2431 | 9 | // in any form without prior written permission from the copyright holder, Treehouse. |
mfwic | 1:9f8583ba2431 | 10 | // |
mfwic | 1:9f8583ba2431 | 11 | // The above copyright notice and this permission notice shall be included in |
mfwic | 1:9f8583ba2431 | 12 | // all copies or substantial portions of the Software. |
mfwic | 1:9f8583ba2431 | 13 | // |
mfwic | 1:9f8583ba2431 | 14 | //------------------------------------------------------------------------------- |
mfwic | 1:9f8583ba2431 | 15 | // |
mfwic | 1:9f8583ba2431 | 16 | // REVISION HISTORY: |
mfwic | 1:9f8583ba2431 | 17 | // |
mfwic | 1:9f8583ba2431 | 18 | // $Author: $ |
mfwic | 1:9f8583ba2431 | 19 | // $Rev: $ |
mfwic | 1:9f8583ba2431 | 20 | // $Date: $ |
mfwic | 1:9f8583ba2431 | 21 | // $URL: $ |
mfwic | 1:9f8583ba2431 | 22 | // |
mfwic | 1:9f8583ba2431 | 23 | //------------------------------------------------------------------------------- |
mfwic | 1:9f8583ba2431 | 24 | |
mfwic | 1:9f8583ba2431 | 25 | #ifndef menu_H |
mfwic | 1:9f8583ba2431 | 26 | #define menu_H |
mfwic | 1:9f8583ba2431 | 27 | |
mfwic | 1:9f8583ba2431 | 28 | #include "mbed.h" |
mfwic | 1:9f8583ba2431 | 29 | |
mfwic | 6:39442d493098 | 30 | extern volatile bool updateReady; |
mfwic | 6:39442d493098 | 31 | |
mfwic | 6:39442d493098 | 32 | extern unsigned int binCode[6]; |
mfwic | 6:39442d493098 | 33 | extern unsigned int thermCode[17]; |
mfwic | 6:39442d493098 | 34 | |
mfwic | 6:39442d493098 | 35 | extern unsigned int en_out_code; |
mfwic | 6:39442d493098 | 36 | extern unsigned int wr_out_code; |
mfwic | 6:39442d493098 | 37 | |
mfwic | 6:39442d493098 | 38 | extern unsigned int loopTime; |
mfwic | 6:39442d493098 | 39 | |
mfwic | 6:39442d493098 | 40 | extern unsigned short v48, v24, v12; // Voltage divide ratio is a little low due to substituting 10k resistors in place of the 100k. The 100k caused the opamps to oscillate. |
mfwic | 6:39442d493098 | 41 | extern unsigned short i48, i24, i12; |
mfwic | 6:39442d493098 | 42 | |
mfwic | 6:39442d493098 | 43 | void initDRT(void); |
mfwic | 6:39442d493098 | 44 | void updateTerminal(void); |
mfwic | 6:39442d493098 | 45 | |
mfwic | 3:d8948c5b2951 | 46 | enum menuTypes {MENU_DCM1, MENU_CALIBRATE, MENU_TEST, MENU_MAIN}; |
mfwic | 3:d8948c5b2951 | 47 | |
mfwic | 1:9f8583ba2431 | 48 | void clrScrn(void); |
mfwic | 1:9f8583ba2431 | 49 | void menuRedraw(void); |
mfwic | 3:d8948c5b2951 | 50 | void menuPrompt(int); |
mfwic | 1:9f8583ba2431 | 51 | |
mfwic | 1:9f8583ba2431 | 52 | #endif |