Skip to content

Commit 658cb33

Browse files
committed
Tidy up sketch instructions. FemtoCore DEBUG disabled by default, ENABLE_SERIAL enabled by default
1 parent 819eb8c commit 658cb33

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

libraries/FemtoBeacon_Rf/FemtoCore_r2.0.7/FemtoCore_r2.0.7.ino

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,18 @@ int destNodeId = is_coin ? 0x01 : coinId;
2323
* For this demo, plug in the dongle to one USB port, and the coin to another.
2424
* Use PuTTY or Minicom as serial monitor for the coin (115200 baud).
2525
* Use the Arduino Serial monitor for the dongle (with newline enabled, at 115200 baud, although SerialUSB doesn't do anything with the baud rate anyway).
26-
* Type ":v" into the Arduino Serial monitor, then press enter. It should send ":v" to the coin, and the coin will return the FreeIMU version it has.
26+
*
27+
* Open up the Arduino Serial monitor on the dongle, and then power up the coin(s).
28+
* When you see "from:0x2:0x1:=INIT_COMPLETE", it means node 0x2 is ready for commands.
29+
*
30+
* When the coin node is ready for commands, type ":v" into the Arduino Serial monitor, then press enter.
31+
* It should send ":v" to the coin, and the coin will return the FreeIMU version it has.
32+
*
33+
* To start flow of FemtoBeacon data, type "SET_REPEAT:0x01::D" (where 0x01 enables repeat, and :D is the command to repeat)
34+
* To stop flow of FemtoBeacon data, type "SET_REPEAT:0x00" (where 0x00 disables repeat)
35+
*
36+
*
37+
* See COMMANDS.md for full list of commands
2738
*/
2839

2940
void setup() {

libraries/FemtoCore/FemtoCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919

2020
#define ENABLE_SERIAL // We want serial USB output.
21-
#define DEBUG // We also want to see debug serial output.
21+
// #define DEBUG // We also want to see debug serial output.
2222

2323
#ifndef FEMTO_SERIAL_BAUD_RATE
2424
#define FEMTO_SERIAL_BAUD_RATE 115200 // Default baud rate. Note, this is the highest that works on Windows COM ports!

0 commit comments

Comments
 (0)