diff options
Diffstat (limited to 'Mussel/examples/command/command.ino')
-rw-r--r-- | Mussel/examples/command/command.ino | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Mussel/examples/command/command.ino b/Mussel/examples/command/command.ino new file mode 100644 index 0000000..f359e00 --- /dev/null +++ b/Mussel/examples/command/command.ino @@ -0,0 +1,19 @@ +#include <Mussel.h> + +// instantiate with attitude #6 +Mussel mussel(6); + +void setup() { + Serial.begin(115200); + mussel.begin(); + + Serial.printf("\n\nDevice ready: %s\n", + mussel.desc().c_str()); +} + +void loop() { + Serial.printf("gap:%d\n", + mussel.read()); + + delay(1000); +} |