Library Setup - Milwaukee School of Engineering · Library Setup •With your desired project...

15
Library Setup MSOE_LIB

Transcript of Library Setup - Milwaukee School of Engineering · Library Setup •With your desired project...

Library Setup

MSOE_LIB

2 © tjEE 2920 – Fall 2017

Library Setup

• Download the MSOE_LIB.zip file from the web page

• Right click on the file and select extract all

• Select your workspace directory as the destination

Windows:File Explorer

3 © tjEE 2920 – Fall 2017

Library Setup

• Startup Code Composer Studio in your desired workspace

• File -> Import

4 © tjEE 2920 – Fall 2017

Library Setup

• Code Composer Studio -> CCS Projects

5 © tjEE 2920 – Fall 2017

• Click Browse

• Select MSOE_LIB

from your workspace

directory

• Finish

Library Setup

6 © tjEE 2920 – Fall 2017

• MSOE_LIB is now visible in your workspace

Library Setup

7 © tjEE 2920 – Fall 2017

Library Setup

• With your desired project highlighted

• Project -> Properties ->

Build -> MSP432 Compiler -> include Options -> +

8 © tjEE 2920 – Fall 2017

Library Setup

• Select Workspace

• Select MSOE_LIB

9 © tjEE 2920 – Fall 2017

Library Setup

10 © tjEE 2920 – Fall 2017

Library Setup

• Project -> Properties ->

Build -> MSP432 Linker -> File Search Path -> +

11 © tjEE 2920 – Fall 2017

Library Setup

• Select Workspace

• Expand MSOE_LIB

• Expand Debug

• Select MSOE_LIB.lib

12 © tjEE 2920 – Fall 2017

Library Setup

13 © tjEE 2920 – Fall 2017

Library Setup

• #include “msoe_lib_xxx.h” in your program

14 © tjEE 2920 – Fall 2017

Library Setup

• #include “msoe_lib_lcd.h” in your program

15 © tjEE 2920 – Fall 2017

Library Setup

• Use the library functions in your code

LCD_Config();LCD_clear();

char foo = '0';LCD_goto_xy(4,4);LCD_print_char(foo);

LCD_print_bigchar(0, 0,'G');

uint16_t bin16 = 0xA5A5;LCD_goto_xy(0,2);LCD_print_bin16(bin16);

uint8_t hex8 = 0xA5;LCD_goto_xy(0,5);LCD_print_hex8(hex8);

note wrap-around