Languages other than Python

4 posts / 0 new
Last post
virtualuk
Languages other than Python

Sorry if this has already been covered elsewhere, newb here :-) Will it be possible to use other languages other than Python (e.g. either directly or by bridging to another language)?

piborg
piborg's picture
Programming languages

No problem, we are still writing up the complete rules at the moment :)
You may use any language you like, you can even use a combination if you wish.

All of our standard examples will be written in Python.
If you are using a different language you might need to translate some parts, for exmaple the I2C code to talk to the ZeroBorg.

computernerd486
I2C Code

Can you link the I2C code? I'd like to have a peak and maybe work on a port to java if it does not exist.

piborg
piborg's picture
ZeroBorg I2C code

All of the I2C code is in the ZeroBorg library, ZeroBorg.py, from the ZeroBorg example code:
https://www.piborg.org/downloads/zeroborg/examples.zip

These are the functions we use:

  • Init
  • SetCommsFailsafe
  • ResetEpo
  • SetLed
  • SetMotor1
  • SetMotor2
  • SetMotor3
  • SetMotor4
  • MotorsOff

We also call ScanForZeroBorg, but it is only used for diagnostics when we cannot find the ZeroBorg.

I am not aware of an existing port to Java, but I expect there are others who would be interested in one :)

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>
  • Syntax highlight code surrounded by the <pre class="brush: lang">...</pre> tags, where lang is one of the following language brushes: bash, cpp, perl, python.
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Comment Images
Files must be less than 10 MB.
Allowed file types: png gif jpg jpeg.
Comment Attachments
Files must be less than 10 MB.
Allowed file types: txt pdf nfo doc docx rtf jpg png gif bmp zip tar gz csv xls.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.