NTC application.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
#include "stdio.h"
#include "adc_sensors.h"
#include "sysfont.h"
#include "keyboard.h"
#include "ntc_sensor.h"
Macros | |
#define | X_POS 10 |
The X position of the temperature image on screen. More... | |
Functions | |
void | ntc_sensor_application (void) |
The NTC Temperature application. More... | |
PROGMEM_DECLARE (char const, header[]) | |
Flash text for the heading. More... | |
Variables | |
uint8_t | tempscale_data [] |
The thermometer image. More... | |
#define X_POS 10 |
The X position of the temperature image on screen.
Referenced by ntc_sensor_application().
void ntc_sensor_application | ( | void | ) |
The NTC Temperature application.
References gfx_mono_bitmap::data, GFX_MONO_BITMAP_RAM, gfx_mono_draw_filled_rect, gfx_mono_draw_progmem_string(), gfx_mono_draw_rect, gfx_mono_draw_string(), gfx_mono_put_bitmap, GFX_PIXEL_CLR, GFX_PIXEL_SET, gfx_mono_bitmap::height, KEYBOARD_BACK, keyboard_get_key_state(), KEYBOARD_RELEASE, keyboard_event::keycode, ntc_data_is_ready(), ntc_get_temperature(), ntc_measure(), gfx_mono_bitmap::pixmap, PROGMEM_PTR_T, sysfont, tempscale_data, gfx_mono_bitmap::type, keyboard_event::type, gfx_mono_bitmap::width, and X_POS.
Referenced by main().
PROGMEM_DECLARE | ( | char | const, |
header | [] | ||
) |
Flash text for the heading.
uint8_t tempscale_data[] |
The thermometer image.
Referenced by ntc_sensor_application().