diff --git a/README.md b/README.md index dbe8cb8..9ca601f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,16 @@ - Arduino IDE - Simblee platform for arduino -# Instructions +# Setup - Update Makefile with paths to the NRF SDK, and your serial board, and where arduino is installed. - - `make && make install` + +# Compile and flash devices + +Program a sensor with id 1, turning off serial for power savings + +`make program SERIAL_PORT=/dev/cu.usbserial-FTZ86FTC SENSOR_ID=1 SENSOR_CONFIGURATION_OPTIONS="--no-serial"` + +Program a master listening device that doesn't sleep, and listens all the time. + +`make program SERIAL_PORT=/dev/cu.usbserial-DN00D34P SENSOR_ID=3 SENSOR_CONFIGURATION_OPTIONS="--no-sleep"` diff --git a/src/scheduler.c b/src/scheduler.c index 2b29f6a..5a45ae9 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -53,7 +53,7 @@ static void periodic_timer_cb(void * p_context) DBG_TICK_PIN(6); - if (m_current_time % 3 == 0) { + if (m_current_time % 10 == 0) { //report_debug_register(); SET_LED(LED_GREEN); app_timer_cnt_get(&m_clock_second_start_counter_value);