ELEC2645 (2015/16) / Mbed 2 deprecated Main_code_ver18

Dependencies:   FATFileSystem N5110_mod SDFileSystem USBDevice mbed

Embed: (wiki syntax)

« Back to documentation index

LCD

Variables and functions used to adress the nokia 5110 LCD. More...

Functions

N5110 lcd (PTE26, PTA0, PTC4, PTD0, PTD2, PTD1, PTC3)
 # IO
void LCD_init ()
 # LCD functions
void LCD_set ()
 function to set brightness and PWM frequency values
void LCD_printMain ()
 function to print main screen to display

Variables

float brightness = 0.32
 # LCD variables
float PWM_freq = 50
 current backlight PWM frequency
bool inverse = false
 boolean to keep track of screen colour inversion

Detailed Description

Variables and functions used to adress the nokia 5110 LCD.


Function Documentation

N5110 lcd ( PTE26  ,
PTA0  ,
PTC4  ,
PTD0  ,
PTD2  ,
PTD1  ,
PTC3   
)

# IO

defines LCD pins

void LCD_init (  )

# LCD functions

function to initialise screen

display bootscreen

Definition at line 292 of file main.cpp.

void LCD_printMain (  )

function to print main screen to display

clear upper section of the screen

set up buffer for variable printing

print tempo

print sequence position

print current instrument

print current step

Definition at line 308 of file main.cpp.

void LCD_set (  )

function to set brightness and PWM frequency values

set PWM frequency (new function added to library)

set brightness (new function added to library)

Definition at line 303 of file main.cpp.


Variable Documentation

float brightness = 0.32

# LCD variables

current backlight brightness

Definition at line 212 of file main.h.

bool inverse = false

boolean to keep track of screen colour inversion

Definition at line 218 of file main.h.

float PWM_freq = 50

current backlight PWM frequency

Definition at line 215 of file main.h.