![]() |
Forum Index : Microcontroller and PC projects : BMP085
Author | Message | ||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
I am trying to use TassyJim's BMP085 code for my new E-Ink display weather station but I get an error code Any ideas Jim. Paul. Edit. also I have downloaded the latest version of MMEdit but can't transfer files from MM to PC ? "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
I guess you are using OPTION DEFAULT NONE but haven't declared what type the function returns. The usual problem with communicating with micromites is, you haven't selected the correct syntax file. MMMEdit uses the syntax file to determine what sort of device it's talking to. Use V5.3 'cos I have been too slack to put out a V5.4 syntax yet. Jim VK7JH MMedit |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
Thanks Jim changed it to 'Function Calibrate() as integer' that is now OK but when it gets to the pressure I get. what is the difference ? Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
In that one, you also need to declare the oss variable type. It doesn't matter if it's a FLOAT or INTEGER, as long as you declare it. Function pressure(oss as integer) As integer It's a bugger being forced to do things properly, but it will be worth it eventually. Jim VK7JH MMedit |
||||
palcal![]() Guru ![]() Joined: 12/10/2011 Location: AustraliaPosts: 1993 |
Thanks Jim this is just a step above my programming level at the moment. Basic has become so advanced. I've been at it nearly all day, time to go to a BBQ and have a beer. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |