| Linduino 1.3.0 Linear Technology Arduino-Compatible Demonstration Board

Functions | Macros | Variables
onoffbutton.ino File Reference

Go to the source code of this file.

## Functions
static void | drawFrame ()
static void | redBtn ()
static void | greenBtn ()
static void | setup (void)
static void | loop ()

## Macros
#define | TS_MINX 150
#define | TS_MINY 130
#define | TS_MAXX 3800
#define | TS_MAXY 4000
#define | STMPE_CS 8
#define | TFT_CS 10
#define | TFT_DC 9
#define | FRAME_X 210
#define | FRAME_Y 180
#define | FRAME_W 100
#define | FRAME_H 50
#define | REDBUTTON_X FRAME_X
#define | REDBUTTON_Y FRAME_Y
#define | REDBUTTON_W (FRAME_W/2)
#define | REDBUTTON_H FRAME_H
#define | GREENBUTTON_X (REDBUTTON_X + REDBUTTON_W)
#define | GREENBUTTON_Y FRAME_Y
#define | GREENBUTTON_W (FRAME_W/2)
#define | GREENBUTTON_H FRAME_H

## Variables
Adafruit_STMPE610 | ts = Adafruit_STMPE610(STMPE_CS)
Adafruit_ILI9341 | tft = Adafruit_ILI9341(TFT_CS, TFT_DC)
boolean | RecordOn = false

## Function Documentation

## ◆ drawFrame()

static void drawFrame | ( |  | ) |
| static

Definition at line 41 of file onoffbutton.ino.

## ◆ greenBtn()

static void greenBtn | ( |  | ) |
| static

Definition at line 58 of file onoffbutton.ino.

## ◆ loop()

static void loop | ( | void |  | ) |
| static

Definition at line 89 of file onoffbutton.ino.

## ◆ redBtn()

static void redBtn | ( |  | ) |
| static

Definition at line 46 of file onoffbutton.ino.

## ◆ setup()

static void setup | ( | void |  | ) |
| static

Definition at line 70 of file onoffbutton.ino.

## Macro Definition Documentation

## ◆ FRAME_H

#define FRAME_H 50

Definition at line 29 of file onoffbutton.ino.

## ◆ FRAME_W

#define FRAME_W 100

Definition at line 28 of file onoffbutton.ino.

## ◆ FRAME_X

#define FRAME_X 210

Definition at line 26 of file onoffbutton.ino.

## ◆ FRAME_Y

#define FRAME_Y 180

Definition at line 27 of file onoffbutton.ino.

## ◆ GREENBUTTON_H

#define GREENBUTTON_H FRAME_H

Definition at line 39 of file onoffbutton.ino.

## ◆ GREENBUTTON_W

#define GREENBUTTON_W (FRAME_W/2)

Definition at line 38 of file onoffbutton.ino.

## ◆ GREENBUTTON_X

#define GREENBUTTON_X (REDBUTTON_X + REDBUTTON_W)

Definition at line 36 of file onoffbutton.ino.

## ◆ GREENBUTTON_Y

#define GREENBUTTON_Y FRAME_Y

Definition at line 37 of file onoffbutton.ino.

## ◆ REDBUTTON_H

#define REDBUTTON_H FRAME_H

Definition at line 34 of file onoffbutton.ino.

## ◆ REDBUTTON_W

#define REDBUTTON_W (FRAME_W/2)

Definition at line 33 of file onoffbutton.ino.

## ◆ REDBUTTON_X

#define REDBUTTON_X FRAME_X

Definition at line 31 of file onoffbutton.ino.

## ◆ REDBUTTON_Y

#define REDBUTTON_Y FRAME_Y

Definition at line 32 of file onoffbutton.ino.

## ◆ STMPE_CS

#define STMPE_CS 8

Definition at line 18 of file onoffbutton.ino.

## ◆ TFT_CS

#define TFT_CS 10

Definition at line 20 of file onoffbutton.ino.

## ◆ TFT_DC

#define TFT_DC 9

Definition at line 21 of file onoffbutton.ino.

## ◆ TS_MAXX

#define TS_MAXX 3800

Definition at line 15 of file onoffbutton.ino.

## ◆ TS_MAXY

#define TS_MAXY 4000

Definition at line 16 of file onoffbutton.ino.

## ◆ TS_MINX

#define TS_MINX 150

Definition at line 13 of file onoffbutton.ino.

## ◆ TS_MINY

#define TS_MINY 130

Definition at line 14 of file onoffbutton.ino.

## Variable Documentation

## ◆ RecordOn

boolean RecordOn = false

Definition at line 24 of file onoffbutton.ino.

## ◆ tft

Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC)

Definition at line 22 of file onoffbutton.ino.

## ◆ ts

Adafruit_STMPE610 ts = Adafruit_STMPE610(STMPE_CS)

Definition at line 19 of file onoffbutton.ino.