STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
main.h
Go to the documentation of this file.
1
#pragma once
2
3
// =============================================================================
4
// USER CONFIG
5
// =============================================================================
6
7
#define MCP3201_CS_PIN 1
8
#define MCP3201_MISO_PIN 16
9
#define MCP3201_MOSI_PIN \
10
3
// MOSI unused by MCP3201 (input-only ADC), but required by SPIClass
11
#define MCP3201_CLK_PIN 2
12
13
// Reference voltage (V) — used to convert raw counts to voltage
14
#define VREF 3.3f
15
16
// ADC full-scale counts (12-bit)
17
#define ADC_COUNTS 4095.0f
firmware
IC_Testing
MCP3201T
src
main.h
Generated by
1.15.0