Defines |
#define | PM_Thermometer 1 |
| program mode: shows the digital thermometer...
|
#define | PM_Demo 2 |
| program mode: demonstration without sensor...
|
#define | Celsius 0 |
| unit Celsius
|
#define | Fahrenheit 1 |
| unit Fahrenheit
|
#define | Max_temp 50 |
| maximal temperature in Celsius
|
#define | Min_temp -20 |
| minimal temperature in Celsius
|
#define | Bar_Start_Y 21 |
| start position in Y direction (= -20 degree Celsius) for thermometer bar
|
#define | Bar_Start_X 5 |
| start position in X direction for thermometer bar
|
#define | BUTTON_FLAG_X 17 |
| position in X direction for language button
|
#define | BUTTON_FLAG_Y 17 |
| position in Y direction for language button
|
#define | BUTTON_SPK_X 23 |
| position in X direction for mute button
|
#define | BUTTON_SPK_Y 17 |
| position in Y direction for mute button
|
#define | GERMAN 0 |
| definition for german voice output
|
#define | ENGLISH 1 |
| definition for english voice output
|
#define | PRNG_NEXT() (prng = ((u8)((prng>>1) | ((prng^(prng>>2)^(prng>>3)^(prng>>4))<<7)))) |
| 8-bit, 255 period LFSR (for generating pseudo-random numbers)
|
Functions |
void | init (void) |
void | set_PM_mode (u8 mode) |
void | copy_buf (unsigned char *BUFA, unsigned char *BUFB, unsigned char ucANZ) |
void | fill_buf (char *BUFA, char content, unsigned char ucANZ) |
int | gettemperature (void) |
void | convert_temperature (double *dTempOut, int iTempIn, u8 TempFormat) |
void | draw_thermometer_bar (int iTempRaw) |
void | draw_Dotmatrix (u8 PosX, u8 PosY, int iTempRaw, u8 TempFormat) |
void | VsyncCallBack (void) |
void | convert_temperature_DE (int iTempRaw, u8 TempFormat) |
void | convert_temperature_EN (int iTempRaw, u8 TempFormat) |
void | draw_button (u8 PosX, u8 PosY, const char *map, bool Pressed) |
void | button_handler (u8 PosX, u8 PosY) |
int | main () |
u8 | GetTile (u8 x, u8 y) |
Variables |
u8 | prng |
| Pseudo-random number generator.
|
u8 | program_mode = PM_Thermometer |
| program mode
|
u8 | language = GERMAN |
| choosed language
|
bool | SPK_ON = true |
| status for voice output / mute button
|
bool | cardDetected |
| SD card detected.
|
File | files [MAX_WAVES] |
| array with file entries
|
unsigned long | sectorNo |
bool | playing |
| voice output of a file is running
|
long | bootRecordSector |
int | reservedSectors |
int | sectorsPerFat |
unsigned char | maxRootDirectorySectors |
long | dirTableSector |
char | wav_queue [7] |
| queue with wave files for playing
|
UzeTherm for Uzebox - Speaking thermometer with LM75.
- Version:
- 1.1
- Date:
- 2012
- Author:
- Hartmut Wendt info@hwhardsoft.de.vu <http://www.hwhardsoft.de.vu>
- Copyright:
- GNU Public License V3
- Note:
- This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.