...
api.h/.c - These are the function calls you may need to use. While you should be able to complete the task using just this and other simple calls, you do not necessarily need to if you do not want. The purpose of this was to hide some of the messy syntax from you, and instead provide more clear APIs. Again, you do not need to edit this, but I encourage you to see what these do, since you' have to make calls to these functions. On top of the APIs defined there, I’ve included a comment in api.h with some more function signatures that you have access to that I found helpful to complete the task. Note: I did not create APis to hide FreeRTOS stuff, since you should become familiar with them !
3. Set up your Altium Account
To view how the circuit board works and what your code will need to interact with, you need to view our online plan (called a schematic) of the board. To do that, first enter your northeastern email into the thread in #fw_launchpad then follow the account creation instructions sent to your email. You should be good to go.
4. Testing
Once your code is ready to build, and assuming you’ve run “launchpad install” in the venv, you can do so with the following command:
...
To upload the built code to the board, connect over MicroUSB to the board, and run
Code Block |
---|
ner lp flash |
...
To view the Bluetooth data (optional until later on), download the NRF connect app on your phone. In the scanner, you should see an ESP device. Connect to that and you should be able to see the message!
Similarly you
...
5. Tips/keep in mind
The value returned from the sensor is a raw ADC value. This means it is a unitless value, understood as a strength “percentage”. To understand this value, the resolution of the ADC needs to be known. For this device, the default resolution is 12 bits. This value is simply the number of bits used to depict this percentage - the more bits, the higher the precision you are able to achieve.
...