File: IDE.md

package info (click to toggle)
kuttypy 2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 37,896 kB
  • sloc: python: 58,651; javascript: 14,686; xml: 5,767; ansic: 2,716; makefile: 453; asm: 254; sh: 48
file content (39 lines) | stat: -rw-r--r-- 1,445 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# The IDE

Kuttypy software has an IDE with many examples for learning embedded systems

## Examples

* [BMP180 Sensor](programming/BMP180.md) : Read values from a BMP180 sensor and dump them to the serial port.
* [MPU6050 Acceleromater](programming/MPU6050.md) : Read values from a MPU6050 accelerometer sensor and dump them to the serial port.

and many more...

## Controls

!!! tip "PROCESS"
	* Compile
    * Upload
    * Run

!!! info "Compilation"
	This uses the AVR-GCC compiler to create a hex file. the map and lst files are also shown in new tabs
	![Screenshot](images/ide/compile.png)

	* If you used the deb file to install, the settings icon next to the compile button should be set to link the global kplib.

		The include statement will look like `#include <avr/kp.h>`

	* 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.

		The include statement must be changed to `#include "kp.h"` to use the local version.

!!! info "uploading"
	Upload the compiled hex file to the hardware. 
	![Screenshot](images/ide/upload.png)

!!! info "executing"
	Execute the uploaded program. Any information sent by the firmware over UART is shown in the serial monitor(38400 BAUD)
	![Screenshot](images/ide/run.png)
	
	More about [serial monitoring here](../programming/c/)