I have successfully manged to achieve serial communication between my PC (Windows) and nRF52 board by using the pc-ble-library and the pc-ble-library-js .
I can run without problems, npm test
or node examples/heart_rate_monitor.js
.
Let's say I want to now achieve following thing, an example, when I press one of the buttons on the board, the node.js app would log something like this: "you pressed the button 1"
which file I need to edit, that is where I need to write the code for that, and are there some tutorials/examples/suggestions on how to do it
to be more precise, I'm confused which file I need to edit for handling the logic for the board, and then how to build it, and flash it again etc
thanks