-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.h
46 lines (34 loc) · 1.15 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* This software is licensed under the MIT License: https://github.com/spacehuhntech/usbnova */
#pragma once
#define VERSION "1.2.1"
// ===== DEBUG Settings ===== //
// #define ENABLE_DEBUG
#define DEBUG_PORT Serial
#define DEBUG_BAUD 115200
// ===== Storage Settings ===== //
#define READ_BUFFER 2048
// ===== Parser Settings ===== //
#define CASE_SENSETIVE false
#define DEFAULT_SLEEP 5
// ===== Other Stuff ====== //
#define PREFERENCES_PATH "preferences.json"
// ===== Pin Definitions ===== //
// USB Nova MKI (SAMD21)
#if defined(ARDUINO_QTPY_M0)
#define LED_PIN 11
#define SELECTOR A0
// USB Nova MKII (RP2040)
#elif defined(ARDUINO_GENERIC_RP2040)
#define LED_PIN 12
#define SELECTOR 13
// DIY USB Nova using Adafruit Trinkey (RP2040)
#elif defined(ARDUINO_ADAFRUIT_TRINKEYQT_RP2040)
#define LED_PIN 27
#define SELECTOR 12
// DIY USB Nova using Raspberry Pi Pico (RP2040)
#elif defined(ARDUINO_RASPBERRY_PI_PICO)
#define LED_PIN -1
#define SELECTOR 16
#else // if defined(ARDUINO_BOARD_QTPY_M0_NOVA)
#error "No board defined!"
#endif // if defined(ARDUINO_BOARD_QTPY_M0_NOVA)