B4R Tutorial B4R Beginner's Guide

This guide is obsolete ! It is no more updated.
Please use the B4X Booklets.

Here you find the B4R Beginner's Guide in pdf format.

The source code for the example programs is included.

All suggestions, remarks and typo reports are welcome.

EDIT: 2016.11.06 Updated for B4R version 1.50
 
Last edited:

derez

Expert
Licensed User
Longtime User
Thank you Klaus for this contribution.
Although I consider myself as "not a beginner", I still find some pieces of knowledge that I missed until now.
 

barx

Well-Known Member
Licensed User
Longtime User
Should be an interesting read, thanks klaus
 

Toley

Active Member
Licensed User
Longtime User
Thanks Klaus, very impressive work. I don't know where you found the time to write it, B4R has just been released since few weeks.
 

Beja

Expert
Licensed User
Longtime User
Thanks Klaus so much..
Spectacular fireworks on July 4th. :)
your contribution with this great guide is must have for anyone working with Arduino and B4R.. I will keep this guide next to my soldering machine.


p.s.
One suggestion: To add a Bluetooth tutorial something like the BT chat of B4A:
Android app: Hello
Arduino: Hi
 
Last edited:

atiaust

Active Member
Licensed User
Longtime User
Thanks Klaus,
Excellent guide again. There is much info to remember when using the B4x products, your guide is a great help.
 

rwblinn

Well-Known Member
Licensed User
Longtime User
Well Done ... Chapeau.

It is not (only) a B4R beginners guide but an ESSENTIAL B4R GUIDE to read and to keep as a MUST reference.

Thanks a Lot.
 

Beja

Expert
Licensed User
Longtime User
Hi Klaus.
The project: LedGreenNoSwitchBounce.b4r is working fine in B4X 1.0, but in the beta 3 said access to board is denied.
Aduino Uno (MAKE)
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
The project: LedGreenNoSwitchBounce.b4r is working fine in B4X 1.0, but in the beta 3 said access to board is denied.
Note that such errors are never related to any specific project. It means that the serial port is busy. This can happen if there are several instances of B4R running, or Arduino IDE is connected to the board. Reconnecting the USB cable usually solves such errors.
 

klaus

Expert
Licensed User
Longtime User
Thank you guys for your likes and nice comments.
I answer only today because I was on travel three days with my grand children.

p.s.
One suggestion: To add a Bluetooth tutorial something like the BT chat of B4A:
Android app: Hello
Arduino: Hi
It's the first edition, I will not stop.
I will buy a Bluetooth board quite soon.
 

derez

Expert
Licensed User
Longtime User
multi dimension arrays.
In the guide you write in para 7.4.2 :
Public Data(3, 5, 2) As Int Three dimensions array of integers, total number of items 30.
But in code I see this :
upload_2016-7-25_13-25-35.png
 

Cableguy

Expert
Licensed User
Longtime User
B4R only accepts one dimension arrays, however 2dimension arrays can be simulated.
Have a look at the B4R snippet sub forum!
 
Top