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

#include <FreeRTOS.h>
#include <task.h>

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

const char * PB_MOD_NAME = "dummy";
const i2c_addr_t PB_MOD_ADDR = 0x69;

void testTask() {
	while(1) {
		vTaskDelay(1000 / portTICK_PERIOD_MS);
		Serial.write("Hello world!\r\n");
	}
}

void setup() {
	Serial.begin(115200);
	Serial.write("setup called\r\n");
	xTaskCreate((TaskFunction_t) testTask, "test", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL);
	Serial.write("setup done\r\n");
}