-
Notifications
You must be signed in to change notification settings - Fork 0
/
print.h
30 lines (26 loc) · 1009 Bytes
/
print.h
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
// print.h
// Runs on LM4F120/TM4C123
// Use SSI0 to send an 8-bit code to the ST7735R
// pixel LCD to display text, images, or other information.
// Daniel Valvano
// November 14, 2018
#include <stdint.h>
//-----------------------LCD_OutDec-----------------------
// Output a 32-bit number in unsigned decimal format
// Input: data is a 32-bit unsigned number
// Output: none
// students implement this as part of Lab 7
void LCD_OutDec(uint32_t data);
// -----------------------LCD _OutFix----------------------
// Output characters to LCD display in fixed-point format
// unsigned decimal, resolution 0.001, range 0.000 to 9.999
// Inputs: unsigned 32-bit number
// Outputs: none
// E.g., data=0, then output "0.000 "
// data=3, then output "0.003 "
// data=89, then output "0.089 "
// data=123, then output "0.123 "
// data=9999, then output "9.999 "
// data>9999, then output "*.*** "
// students implement this as part of Lab 7
void LCD_OutFix(uint32_t data);