From 40f7c3503e6c221cd7772e4484ba96644c15c368 Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Sun, 13 Jun 2021 14:55:10 +0900 Subject: [PATCH] q tested. --- q/src/main.cpp | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/q/src/main.cpp b/q/src/main.cpp index d4c4e17..cce5d56 100644 --- a/q/src/main.cpp +++ b/q/src/main.cpp @@ -454,19 +454,31 @@ void hello() { } // //TEST - // Note n = { - // 10001, // int32_t id; - // 1, // float pitch; - // 127, // float velocity; - // 1, // float onoff; - // 0, // float x1; - // 0, // float x2; - // 0, // float x3; - // 0, // float x4; - // 5000 // float ps; - // }; - // note_now = n; - // repeat_task.restart(); + // { + // Note note_composed = { + // 10001, // int32_t id; + // 1, // float pitch; + // 127, // float velocity; + // 1, // float onoff; + // 0, // float x1; + // 0, // float x2; + // 0, // float x3; + // 0, // float x4; + // 5000 // float ps; + // }; + // // + // uint8_t frm_size = sizeof(Note) + 2; + // uint8_t frm[frm_size]; + // frm[0] = '['; + // memcpy(frm + 1, (uint8_t *) ¬e_composed, sizeof(Note)); + // frm[frm_size - 1] = ']'; + // // + // esp_now_send(NULL, frm, frm_size); // to all peers in the list. + // // + // MONITORING_SERIAL.print("# posting a req.# ==> "); + // MONITORING_SERIAL.println(note_composed.to_string()); + // // + // } } Task hello_task(0, TASK_ONCE, &hello, &runner, false);