This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <zephyr.h> | |
#include <device.h> | |
#include <drivers/pwm.h> | |
#include <drivers/adc.h> | |
#include <devicetree.h> | |
#include <nrfx_gpiote.h> | |
#include <nrfx_ppi.h> | |
#include <nrfx_timer.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <utility> | |
#include <memory> | |
#include <string> | |
#include <map> | |
#include <stdexcept> | |
#include <iostream> | |
/** | |
* Parent class for sensors to inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Change the width and height if required (defined in portrait mode) | |
// or use the constructor to over-ride defaults | |
#define TFT_WIDTH 320 | |
#define TFT_HEIGHT 480 | |
// Delay between some initialisation commands | |
#define TFT_INIT_DELAY 0x80 // Not used unless commandlist invoked | |
/** |