aboutsummaryrefslogtreecommitdiff
path: root/lib/pbdrv/pb.h
blob: b6efed07d45a9d5d20f347a86bdceae735e71612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#define PB_CLOCK_SPEED_HZ 100000
#define PB_TIMEOUT_MS 10
#define PB_TIMEOUT_US (1e3 * PB_TIMEOUT_MS)

// Adafruit NeoTrellis modules
#define PB_ADDR_ADA_NEO_1 0x2E
#define PB_ADDR_ADA_NEO_2 0x2F
#define PB_ADDR_ADA_NEO_3 0x30
#define PB_ADDR_ADA_NEO_4 0x32

// TODO: ???
#define PB_ADDR_MOD_NEOTRELLIS 0
#define PB_ADDR_MOD_SOFTWARE 0
#define PB_ADDR_MOD_HARDWARE 0
#define PB_ADDR_MOD_VAULT 0
// #define BUSADDR_MOD_AUTOMATION 0

// main controller
#define PB_ADDR_MOD_MAIN 0x00