diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2016-04-09 16:52:08 +0200 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2016-04-09 16:52:08 +0200 |
commit | 7aaa2f7ae9fbc2c2ec981c6cfb2e1b64605ff2de (patch) | |
tree | a7c243f3f2d7d26c55d42803bbea97a3ac36fa0a | |
parent | ef7ca30b2ea268c01603a1b0dbc9821589377ca4 (diff) |
added helpers
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r-- | sketch_apr09a/sketch_apr09a.ino | 25 |
1 files changed, 25 insertions, 0 deletions
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); |