aboutsummaryrefslogtreecommitdiff
path: root/puzzle/dummy/main.cpp
blob: e5f5e2428d0f9d24736569a58f5a3223adcd68f0 (plain)
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
#include <Arduino.h>
#include <Wire.h>

#include "drv/arduino/mod.h"
#include "pb-mod.h"

#define TEST_A

#ifdef TEST_A
#define ADDR_RX 0x69
#define ADDR_TX 0x20
#define MSG "aa"
#define MSG_SIZE 3
#define MSG_DELAY 10
#endif

#ifdef TEST_B
#define ADDR_TX 0x69
#define ADDR_RX 0x20
#define MSG "bbbbbbbb"
#define MSG_SIZE 9
#define MSG_DELAY 10
#endif

const char * PB_MOD_NAME = "dummy";
const i2c_addr_t PB_MOD_ADDR = ADDR_RX;

void setup() {
	pb_setup();
}

void loop() {
	// pb_i2c_send(ADDR_TX, (uint8_t *) MSG, MSG_SIZE);
	// delay(MSG_DELAY);
}

void pb_i2c_recv(const uint8_t * data, size_t size) { }