Prusa MINI Firmware overview
xpt2046.h File Reference
#include <stdint.h>

Go to the source code of this file.

Classes

class  XPT2046
 

Macros

#define XPT2046_DFR_MODE   0x00
 
#define XPT2046_SER_MODE   0x04
 
#define XPT2046_CONTROL   0x80
 
#define XPT2046_Z1_THRESHOLD   10
 

Enumerations

enum  XPTCoordinate : uint8_t { XPT2046_X = 0x10, XPT2046_Y = 0x50, XPT2046_Z1 = 0x30, XPT2046_Z2 = 0x40 }
 

Variables

XPT2046 touch
 

Macro Definition Documentation

◆ XPT2046_DFR_MODE

#define XPT2046_DFR_MODE   0x00

Marlin 3D Printer Firmware Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]

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/.

◆ XPT2046_SER_MODE

#define XPT2046_SER_MODE   0x04

◆ XPT2046_CONTROL

#define XPT2046_CONTROL   0x80

◆ XPT2046_Z1_THRESHOLD

#define XPT2046_Z1_THRESHOLD   10

Enumeration Type Documentation

◆ XPTCoordinate

Enumerator
XPT2046_X 
XPT2046_Y 
XPT2046_Z1 
XPT2046_Z2 
30  : uint8_t {
31  XPT2046_X = 0x10,
32  XPT2046_Y = 0x50,
33  XPT2046_Z1 = 0x30,
34  XPT2046_Z2 = 0x40
35 };

Variable Documentation

◆ touch

XPT2046 touch
XPT2046_X
Definition: xpt2046.h:31
XPT2046_Z1
Definition: xpt2046.h:33
XPT2046_Z2
Definition: xpt2046.h:34
uint8_t
const uint8_t[]
Definition: 404_html.c:3
XPT2046_Y
Definition: xpt2046.h:32