Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Convert Arduino code to Micromite Basic
Author | Message | ||||
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1676 |
Is there anyone here that is able to convert Arduino code to MM Basic? I want to use a BME280 module, there are a couple of example codes/sketches for the Arduino but I can't find any for the Micromite. And I can't find any examples of MMBasic for the BME280 module. My knowledge of basic is way too weak to even consider anything myself unfortunately. |
||||
MM_Wombat Senior Member Joined: 12/12/2011 Location: AustraliaPosts: 139 |
@lew247 I could give it a go, but I would have to buy the module first, and wait for it to arrive. I could attempt to write the code, but debugging would be difficult if I didn't have the module. Little Bird Electronics have it for 30 AUD, in Sydney. I did the same thing for the DMD Panels from freetronics a while back.. Which version of the Micromite would it be for. I have the MM+ from CircuitGizmo. I also have the Arduino Eleven from Freetronics for comparisons. MM_Wombat Keep plugging away, it is fun learning But can be expensive (if you keep blowing things up). Maximite, ColourMaximite, MM+ |
||||
palcal Guru Joined: 12/10/2011 Location: AustraliaPosts: 1805 |
In the adafruit datasheet on page 23 there is code that appears to be written in C (I'm all at sea with C I'm afraid}. Maybe this could be used as a C function, maybe one of the C gurus could answer but you still have to extract the calibration data from the device and I'm sure someone here could do that. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
atmega8 Guru Joined: 19/11/2013 Location: GermanyPosts: 712 |
This Code is in Bascom, a Basic Language for AVR Controllers. IT should be easy to Converter to mmbasic. http://www.mikrocontroller.net/attachment/280969/BME280.bas |
||||
robert.rozee Guru Joined: 31/12/2012 Location: New ZealandPosts: 2294 |
try here for a somewhat better price: http://www.ebay.com/itm/321988583888 (BMP280, less than us$2 including delivery) http://www.ebay.com/itm/401000227934 (BME280, less than us$6 including delivery) cheers, rob :-) |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 8605 |
If you send me the module I'll get it working for you. Send me a PM if interested |
||||
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1676 |
Sent you a pm matherp |
||||
MM_Wombat Senior Member Joined: 12/12/2011 Location: AustraliaPosts: 139 |
@lew247 See, someone answers , then all the offers come in. I'm sure Matherp would do a better job than me anyway. MM_Wombat Keep plugging away, it is fun learning But can be expensive (if you keep blowing things up). Maximite, ColourMaximite, MM+ |
||||
TassieRosco Newbie Joined: 17/02/2016 Location: AustraliaPosts: 2 |
I put the BME280.bas BASCOM file through Google Translate for the english speakers. See: 2016-02-17_013037_BME280_en.pdf |
||||
bigfix Senior Member Joined: 20/02/2014 Location: AustriaPosts: 124 |
I just stepped over this guide : Convert Arduino Code to MPLAB IDE It explains briefly how to port Arduino code to PIC I guess it could be useful to try Arduino supported HW on a PIC32 System It will run standalone - not integrate with MMbasic I do not speak "C", so cannot judge about it... - maybe helpful |
||||
Print this page |