aboutsummaryrefslogtreecommitdiff
path: root/puzzle/dummy/main.cpp
blob: 61c7b5b5b4deb7f8f35bd3f78072be7a0d28c3ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <Arduino.h>
#include <Wire.h>

#include <FreeRTOS.h>
#include <task.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);
	xTaskCreate((TaskFunction_t) testTask, "test", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL);
}