|
Post by eg12ezyr on Dec 22, 2019 19:03:40 GMT -5
Hallo everyone, I am new with topic liberty basic I need to know if I can to convert liberty basic to Arduino code or to c code. Or if I can use liberty basic in a micro controller
thank you.
wolfgang
|
|
|
Post by sarossell on Dec 22, 2019 21:41:38 GMT -5
Welcome! Sounds like you're diving into a real fun project. The current version of Liberty BASIC (v4.5.1) does not have native language support for Arduino. However, there has been some effort in the past to convert the BASIC code to C. Check out lbpp.sourceforge.net and www.basic-converter.org to start. Another, albeit kind of round-about method, might be to use LB Booster: www.bbcbasic.co.uk/lbb which converts Liberty BASIC to BBC BASIC and then compile or translate the BBC BASIC to C. Be advised however, the BBC code that LB Booster creates is heavily dependent on included libraries which can be a little tricky to locate. Additionally, Liberty BASIC does have port control commands that can interface with Arduino and other similar devices. Check out this site for something similar: www.phanderson.com/tm125_liberty_basic.html. BUT! Even more exciting, the current development of the next version (v5.0) of Liberty BASIC has native support for the Raspberry Pi. It's currently in alpha testing and can be downloaded here: www.libertybasic.com/lb5-350.zip. It should have enough function to get an idea of its capabilities. I realize Raspberry Pi is not Arduino. I just wanted to give you an idea of the current scope of development and possibilities. Best of luck! When you come up with something, please give us a show and tell! :@)
|
|
|
Post by Rod on Dec 23, 2019 4:37:26 GMT -5
Hi wolfgang. The Arduino is a fantastic little device, you will have lots of fun with it. As far as Liberty BASIC goes my view is that it compliments the Arduino. We don't have an IDE that creates or interprets Sketches or #C. There are so many good ones out there already there has been little motivation to engineer one in Liberty. What Liberty is really good at is taming Windows and allowing you to build GUI interfaces that can talk to and control your Arduino. You might just send data and chart it or you might have on screen dials and switches that control the Arduino. We have created a couple of Sketches that allow Liberty to control all of the Arduino pins, we can light leds and move servos and ping ultrasonic distance. We can show all of that on screen. Have a browse at this alycesrestaurant.com/lbpe/Fun%20with%20the%20Arduino.htmlYou will need to learn how to write Sketches, but at some point you will want to have your computer linked either for display or for GUI control. That's when Liberty BASIC comes into its own. So stay around and play a little, play with Liberty and play with the Arduino, your time will not be wasted.
|
|
|
Post by Rod on Dec 23, 2019 10:05:07 GMT -5
Did a tilt and turn head once. Called her Libby. She could tell me how far away I was, she spoke, Liberty can do that! Some images that you might print and stick to foam board to build her. The last link has all the software you need to get her animated. gamebin.webs.com/Liberty/Libby.zip
|
|