B4R Question How to code serial1.println(" Msg")

Theera

Expert
Licensed User
Longtime User
Refer to the code which is attached,I don't know how to code serial1.println(" Msg") in B4R.
In C programming
B4X:
 Searial.println(" Somebody here!");
 

Attachments

  • DetectPerson.zip
    1.2 KB · Views: 135

aeric

Expert
Licensed User
Longtime User
Are you working with LCD Display?
LCD display


Check B4R Example Projects (page 63).

B4X:
Private Sub AppStart
  Serial1.Initialize(115200)
  ...
  'initialize the display(RS As Byte, RW As Byte, Enable As Byte
  'RS pin > Arduino digital pin 12
  'RW pin > 255 means mot used
  'Enable pin > Arduino digital pin 11
  'DataPins: Arduino digital pins 5, 4, 3, 2
  lcdDisplay.Initialize(12, 255, 11, Array As Byte(5, 4, 3, 2))
  lcdDisplay.Begin(16, 2) 'set the display type 2 * 16 characters
  lcdDisplay.Write("Light OFF") 'write "Light OFF" in the first line
End Sub
 
Last edited:
Upvote 0

Theera

Expert
Licensed User
Longtime User
Thanks for reply. But screenshot instead of the code line is ...
Just confirm that your solution concept matches the AI. I recommend it. Don't think about anything. I want to say that you have great abilities, just like AI. I sincerely appreciate it. Thank you for recommending it (Google translate)
 
Upvote 0
Top