Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:48 02 Aug 2025 Privacy Policy
Jump to

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 : BMP085

Author Message
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1993
Posted: 03:33am 31 Mar 2018
Copy link to clipboard 
Print this post

I am trying to use TassyJim's BMP085 code for my new E-Ink display weather station but I get an error code
  Quote  > run
[80] Function Calibrate()
Error: Variable type not specified
>

Any ideas Jim.
Paul.
Edit. also I have downloaded the latest version of MMEdit but can't transfer files from MM to PC ?Edited by palcal 2018-04-01
"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: Australia
Posts: 6283
Posted: 04:00am 31 Mar 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 1993
Posted: 04:31am 31 Mar 2018
Copy link to clipboard 
Print this post

Thanks Jim changed it to 'Function Calibrate() as integer'
that is now OK but when it gets to the pressure I get.
  Quote  > run
[117] Function pressure(oss) As integer
Error: Variable type not specified
>

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: Australia
Posts: 6283
Posted: 04:43am 31 Mar 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 1993
Posted: 04:53am 31 Mar 2018
Copy link to clipboard 
Print this post

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"
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025