From 7aaa2f7ae9fbc2c2ec981c6cfb2e1b64605ff2de Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sat, 9 Apr 2016 16:52:08 +0200 Subject: added helpers Signed-off-by: Olivier Gayot --- sketch_apr09a/sketch_apr09a.ino | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/sketch_apr09a/sketch_apr09a.ino b/sketch_apr09a/sketch_apr09a.ino index af05cef..284a2a1 100644 --- a/sketch_apr09a/sketch_apr09a.ino +++ b/sketch_apr09a/sketch_apr09a.ino @@ -43,6 +43,31 @@ void setup() Serial.begin(9600); } +static void send_pressure_bottom(int pressure) +{ + serial_printf("PRESSURE_BOTTOM:%d\n", pressure); +} +static void send_pressure_top(int pressure) +{ + serial_printf("PRESSURE_TOP:%d\n", pressure); +} +static void send_flexion(int flexion) +{ + serial_printf("FLEXION:%d\n", flexion); +} +static void send_angle_x(int angle) +{ + serial_printf("ANGLE_X:%d\n", angle); +} +static void send_angle_y(int angle) +{ + serial_printf("ANGLE_Y:%d\n", angle); +} +static void send_angle_z(int angle) +{ + serial_printf("ANGLE_Z:%d\n", angle); +} + void loop() { delay(500); -- cgit v1.2.3