B4R Question uint8_t & uint16_t

Siam

Active Member
Licensed User
Longtime User
hello,

how can i convert an uint to uint8_t or uint16_t in b4r ?

i have the following command:

B4X:
getchar (c as uint8_t, size as uint_8t , buff as uint8_t) as uint8_t

this funktion i will call
B4X:
uint8_t getChar(uint8_t c, uint8_t size, uint8_t *buf);

this is in my .h file
B4X:
uint8_t getChar(uint8_t c, uint8_t size, uint8_t *buf);

this is my .cpp file
B4X:
    uint8_t B4RMDMAX72xxLedMatrix::getChar(uint8_t c, uint8_t size, uint8_t *buf){
    return led->getChar(c, size, *buf);
    }




how can i call this command ?

regards

Andy
 
Last edited:
Top