Uint8_t & Uint16_t | B4X Programming Forum

B4X Programming Forum
  • Home
  • Products B4A B4i B4J B4R
  • Showcase
  • Store
  • Learn General Guides Video Tutorials Glossary
  • Teach
  • Blog
  • Forums #B4X Discord (unofficial) B4X Facebook Group B4X Github
  • New posts What's new New profile posts Latest activity
  • Members Current visitors New profile posts Search profile posts
Log in Register What's new
  • #B4X Discord (unofficial)
  • B4X Facebook Group
  • B4X Github
Menu Log in Register Install the app Install
  • Welcome to B4X forum! B4X is a set of simple and powerful cross platform RAD tools:
    • B4A (free) - Android development
    • B4J (free) - Desktop and Server development
    • B4i - iOS development
    • B4R (free) - Arduino, ESP8266 and ESP32 development
    All developers, with any skill level, are welcome to join the B4X community.
  • Home
  • Forums
  • B4R - Arduino, ESP8266 and ESP32
  • B4R Questions
You are using an out of date browser. It may not display this or other websites correctly.You should upgrade or use an alternative browser. B4R Questionuint8_t & uint16_t
  • Thread starter Siam
  • Start date Jan 15, 2019
  • Similar Threads Similar Threads
Siam

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: Jan 15, 2019 If you like my work, you can offer me a coffee! so you keep me motivated for more stuff like this. Sort by date Sort by votes Erel

Erel

B4X founder
Staff member Licensed User Longtime User uint8_t is the same as Byte. uint16_t is the same as UInt. [B4X] Features that Erel recommends to avoid [B4X] "Code Smells" - common mistakes and other tips Upvote 0 Siam

Siam

Active Member
Licensed User Longtime User then i make something wrong :( B4X: Cannot cast type: {Type=Byte,Rank=0, RemoteObject=True} to: {Type=uint8_t,Rank=0, RemoteObject=True} If you like my work, you can offer me a coffee! so you keep me motivated for more stuff like this. Upvote 0 Siam

Siam

Active Member
Licensed User Longtime User ok sometimes i should take a break ... now i have it thx If you like my work, you can offer me a coffee! so you keep me motivated for more stuff like this. Upvote 0 You must log in or register to reply here.

Similar Threads

hatzisn
  • Question
B4R Question uint8_t - some questions
  • hatzisn
  • Jan 9, 2025
  • B4R Questions
Replies 3 Views 1K Jan 10, 2025 candide C mzsoft
  • Question
B4R Question UInt array inline c
  • mzsoft
  • Sep 7, 2022
  • B4R Questions
Replies 1 Views 2K Sep 8, 2022 Erel Erel KMatle
  • Question
B4R Question Inline C: Byte Array -> uint8_t
  • KMatle
  • Apr 29, 2021
  • B4R Questions
Replies 5 Views 3K May 2, 2021 Erel Erel Johan Schoeman
  • Question
B4R Question Reading UInt from PROGMEM
  • Johan Schoeman
  • Nov 22, 2020
  • B4R Questions
Replies 1 Views 2K Nov 22, 2020 Erel Erel janderkan
  • Question
B4R Question How to use global arrays from inline C
  • janderkan
  • Jul 7, 2016
  • B4R Questions
Replies 4 Views 6K Jul 17, 2024 Erel Erel Share: Facebook Twitter Reddit Pinterest Tumblr WhatsApp Email Share Link
  • Home
  • Forums
  • B4R - Arduino, ESP8266 and ESP32
  • B4R Questions
  • This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register. By continuing to use this site, you are consenting to our use of cookies. Accept Learn more…
Top

Tag » Arduino Uint16_t To Uint8_t