Debian Codegraph @

docs/IDE.md

raw symbols SCIP
1 # The IDE
2
3 Kuttypy software has an IDE with many examples for learning embedded systems
4
5 ## Examples
6
7 * [BMP180 Sensor](programming/BMP180.md) : Read values from a BMP180 sensor and dump them to the serial port.
8 * [MPU6050 Acceleromater](programming/MPU6050.md) : Read values from a MPU6050 accelerometer sensor and dump them to the serial port.
9
10 and many more...
11
12 ## Controls
13
14 !!! tip "PROCESS"
15 * Compile
16 * Upload
17 * Run
18
19 !!! info "Compilation"
20 This uses the AVR-GCC compiler to create a hex file. the map and lst files are also shown in new tabs
21 ![Screenshot](images/ide/compile.png)
22
23 * If you used the deb file to install, the settings icon next to the compile button should be set to link the global kplib.
24
25 The include statement will look like `#include <avr/kp.h>`
26
27 * If however, you used pip, or are running from source, the kp.h and kplib.a files are stored in the examples directory, so select the Local KPlib option which automatically adds compile arguments pointing to the correct path.
28
29 The include statement must be changed to `#include "kp.h"` to use the local version.
30
31 !!! info "uploading"
32 Upload the compiled hex file to the hardware.
33 ![Screenshot](images/ide/upload.png)
34
35 !!! info "executing"
36 Execute the uploaded program. Any information sent by the firmware over UART is shown in the serial monitor(38400 BAUD)
37 ![Screenshot](images/ide/run.png)
38
39 More about [serial monitoring here](../programming/c/)