ePaper_EXT3_Basic_Library Reference Manual
501
Library for Pervasive Displays EXT3 - Basic level
|
Functions | |
void | delay_ms (uint32_t ms) |
Blocking delay. More... | |
String | formatString (const char *format,...) |
Format string. More... | |
String | trimString (String text) |
Remove leading and ending characters. More... | |
int32_t | cos32x100 (int32_t degreesX100) |
Cosinus. More... | |
int32_t | sin32x100 (int32_t degreesX100) |
Sinus. More... | |
void | convertPolar2Rectangle (uint16_t centerX, uint16_t centerY, uint16_t angle, uint16_t radius, uint16_t &rectangularX, uint16_t &rectangularY) |
Convert polar to rectangle coordinates. More... | |
void | convertRectangle2Polar (uint16_t centerX, uint16_t centerY, uint16_t rectangularX, uint16_t rectangularY, uint16_t &angle, uint16_t &radius) |
Convert rectangle to polar coordinates. More... | |
String | utf2iso (String s) |
UTF-8 to ISO-8859-1 Converter. More... | |
String | i32toa (int32_t number, int32_t unit, uint8_t decimal, uint8_t size) |
Convert int32_t to string. More... | |
String | htoa (uint32_t number, uint8_t size) |
Convert hexadecimal to string. More... | |
String | ttoa (uint32_t number, uint8_t size) |
Convert time is ms to string. More... | |
String | btoa (uint32_t number, uint8_t size) |
Convert binary to string. More... | |
uint16_t | checkRange (uint16_t value, uint16_t valueMin, uint16_t valueMax) |
Check value in range. More... | |
void | setMinMax (uint16_t value, uint16_t &valueMin, uint16_t &valueMax) |
Update min and max values. More... | |
uint32_t | roundUp (uint32_t value, uint16_t modulo) |
Round-up. More... | |
void | swap (uint16_t &a, uint16_t &b) |
Swap number, uint16_t. More... | |
void | swap (int16_t &a, int16_t &b) |
Swap number, int16_t. More... | |
void | swap (uint8_t &a, uint8_t &b) |
Swap number, uint8_t. More... | |
Variables | |
char | bufferIn [128] |
char | bufferOut [128] |
char | bufferFormat [32] |
String btoa | ( | uint32_t | number, |
uint8_t | size = 8 |
||
) |
Convert binary to string.
number | binary value |
size | total number of digits, default=0=no check |
uint16_t checkRange | ( | uint16_t | value, |
uint16_t | valueMin, | ||
uint16_t | valueMax | ||
) |
Check value in range.
value | value to check |
valueMin | range minimum |
valueMax | range maximum |
void convertPolar2Rectangle | ( | uint16_t | centerX, |
uint16_t | centerY, | ||
uint16_t | angle, | ||
uint16_t | radius, | ||
uint16_t & | rectangularX, | ||
uint16_t & | rectangularY | ||
) |
Convert polar to rectangle coordinates.
[in] | centerX | circle center, x coordinate |
[in] | centerY | circle center, y coordinate |
[in] | angle | angle, degrees 0..360° |
[in] | radius | radius, pixels |
[out] | rectangularX | x rectangular coordinate |
[out] | rectangularY | y rectangular coordinate |
void convertRectangle2Polar | ( | uint16_t | centerX, |
uint16_t | centerY, | ||
uint16_t | rectangularX, | ||
uint16_t | rectangularY, | ||
uint16_t & | angle, | ||
uint16_t & | radius | ||
) |
Convert rectangle to polar coordinates.
[in] | centerX | circle center, x coordinate |
[in] | centerY | circle center, y coordinate |
[in] | rectangularX | x rectangular coordinate |
[in] | rectangularY | y rectangular coordinate |
[out] | angle | angle in degrees 0..360° |
[out] | radius | radius in pixels |
int32_t cos32x100 | ( | int32_t | degreesX100 | ) |
Cosinus.
degreesX100 | angle in degrees, x100 |
void delay_ms | ( | uint32_t | ms | ) |
String formatString | ( | const char * | format, |
... | |||
) |
Format string.
Based on vsprint
format | format with standard codes |
... | list of values |
String htoa | ( | uint32_t | number, |
uint8_t | size = 0 |
||
) |
Convert hexadecimal to string.
number | hexadecimal value |
size | total number of digits, default=0=no check |
String i32toa | ( | int32_t | number, |
int32_t | unit = 1 , |
||
uint8_t | decimal = 0 , |
||
uint8_t | size = 0 |
||
) |
Convert int32_t to string.
number | value, int32_t, already multiplied by unit |
unit | default=1, 10 or 100 |
decimal | number of decimal digits, default=0 |
size | total number of digits, default=0=free size, no check |
uint32_t roundUp | ( | uint32_t | value, |
uint16_t | modulo | ||
) |
Round-up.
value | value to round-up |
modulo | modulo |
void setMinMax | ( | uint16_t | value, |
uint16_t & | valueMin, | ||
uint16_t & | valueMax | ||
) |
Update min and max values.
value | value to consider |
valueMin | minimum value to update if value < valueMin |
valueMax | maximum value to update if value > valueMax |
int32_t sin32x100 | ( | int32_t | degreesX100 | ) |
Sinus.
degreesX100 | angle in degrees, x100 |
void swap | ( | uint16_t & | a, |
uint16_t & | b | ||
) |
Swap number, uint16_t.
a | first number |
b | second number |
void swap | ( | int16_t & | a, |
int16_t & | b | ||
) |
Swap number, int16_t.
a | first number |
b | second number |
void swap | ( | uint8_t & | a, |
uint8_t & | b | ||
) |
Swap number, uint8_t.
a | first number |
b | second number |
String trimString | ( | String | text | ) |
Remove leading and ending characters.
text | input text |
String ttoa | ( | uint32_t | number, |
uint8_t | size = 0 |
||
) |
Convert time is ms to string.
number | ms |
size | total number of digits, default=0=free size, no check |
String utf2iso | ( | String | s | ) |
UTF-8 to ISO-8859-1 Converter.
s | UTF-8 string, input |
char bufferFormat[32] |
char bufferIn[128] |
char bufferOut[128] |