B4R Question Example code from C to B4R

Hypnos

Active Member
Licensed User
Longtime User
Hi Erel and everyone,

Can you please give me an example code how to translate the follow code into B4R? Thanks!

B4X:
void setup() {
  Serial.begin(31250);
}

void loop() {
  Serial.write(0x99);
  Serial.write(0x1E);
  Serial.write(0x45);

  }
 

Hypnos

Active Member
Licensed User
Longtime User
It's worked!

Yes, I asking for this example because I found many of the example in this forum using "AsyncStreams" and I'm not quite understand what's AsyncStreams and why not using serial1.stream directly.

I'll look into the related discussion and try to figure out what's the different.. Thanks for your help Erel!
 
Upvote 0
Top