Current Wish List
-
- Posts: 44
- Joined: 13 Aug 2007 17:05
Hi,SpaceWalker wrote:i would like something to hide the procedures in the IDE.
like in VisualBasic Express, a "-" or "+" ( in the left number column ) to show or hide a procedure or function.
for a big program, these maybe usefull
regards
Here is a full answer of what you request.
http://www.mikroe.com/forum/viewtopic.p ... ode+folder
This was called "code folder" in mB 2.2.
May be this one is easier to implement.
http://www.mikroe.com/forum/viewtopic.php?p=59129#59129
This woud be more powerfull than code folder.
May be in future releases..... who knows ?
Alain
-
- Posts: 44
- Joined: 13 Aug 2007 17:05
I would prefer the second suggestion which is (would be) more powerfull than code folder.SpaceWalker wrote:yes Kalain, exactly that in MB2.2 ..
hope soon !
http://www.mikroe.com/forum/viewtopic.php?p=59129#59129
Alain
-
- Posts: 573
- Joined: 25 Apr 2006 15:39
- Location: Cape Town, South Africa
I've been in trouble before, for mentioning other compilers, but here is a simple little program I wrote in P@#%&#, and there is no way I seem to be able to do it in mE Basic
At least, not in 24 lines of code
So, these commands would be my wish
At least, not in 24 lines of code
So, these commands would be my wish
Code: Select all
' Servo Reverser for RC servos
Device = 12F675
Config CPD_OFF,CP_OFF,BODEN_OFF,MCLRE_OFF,PWRTE_ON,WDT_OFF,INTRC_OSC_NOCLKOUT
ALL_DIGITAL = TRUE ' We only want digital functions
OSCCAL = %01001100 ' Fine tune the timing of the pulses
Declare XTAL = 4 ' 4 MHz clock, duh.....
Dim InPulse As Word ' Define the size of the variables
Dim NewPulse As Word
Dim CentreVal As Word
DelayMS 1000 ' Let the Pic settle a bit
CentreVal = 1500 ' Depends on your servo specs...
'Main program starts here
loop:
InPulse = PulsIn GPIO.2 ,1 ' Measure a pulse on GPIO.2
InPulse = InPulse * 10 ' Scale the result for a 4MHz clock
' InPulse = InPulse * ? ' Scale the result for a 8MHz clock
' InPulse = InPulse * ? ' Scale the result for a 10MHz clock
' InPulse = InPulse * 2 ' Scale the result for a 20MHz clock
NewPulse = (CentreVal - InPulse)+ CentreVal ' Invert the result
Servo GPIO.5, InPulse ' Output normal pulse on GPIO.5
Servo GPIO.4, NewPulse ' Output inverted pulse on GPIO.4
DelayMS 1 ' Just to keep things happy
GoTo loop
End
"Copy'nPaste"
-
- Posts: 573
- Joined: 25 Apr 2006 15:39
- Location: Cape Town, South Africa
Hi,
u have change a lot in MB comparing to PC BASIC........... try to be close to PC BASIC. This is the most important if u are calling ur compiler as BASIC.
The string handling is very poor .... why u put CHAR[] instead STRING??????????????
String handling is very bad in MB!!!!!!!!!!
No PRINT command
etc etc........
good luck
SH007
u have change a lot in MB comparing to PC BASIC........... try to be close to PC BASIC. This is the most important if u are calling ur compiler as BASIC.
The string handling is very poor .... why u put CHAR[] instead STRING??????????????
String handling is very bad in MB!!!!!!!!!!
No PRINT command
etc etc........
good luck
SH007
-
- Posts: 44
- Joined: 13 Aug 2007 17:05
* Ability to use same function in booth Interupt and main program.
i need to use UART in interupt and main, for by example debbug
( i have read on forum, that is possible if we don't use parameter in function ... too bad !!! ) -- Suported in PBP
* Ability to "call" a function or procedure, event if she's write after the call line. The compiler may be do a first full read of program to store the procedures names and a second pass to realy compile the program ??
-- Suported in PBP
************************* This working
sub procedure TOTO
end sub
sub procedure TATA
TOTO()
end sub
************************* This NOT working
sub procedure TATA
TOTO()
end sub
sub procedure TOTO
end sub
* A full integration of ICD2 ( Microchip ) with USB connection in the compiler.. or a "script" to compile from MPLAB -- Suported in PBP
regards
i need to use UART in interupt and main, for by example debbug
( i have read on forum, that is possible if we don't use parameter in function ... too bad !!! ) -- Suported in PBP
* Ability to "call" a function or procedure, event if she's write after the call line. The compiler may be do a first full read of program to store the procedures names and a second pass to realy compile the program ??
-- Suported in PBP
************************* This working
sub procedure TOTO
end sub
sub procedure TATA
TOTO()
end sub
************************* This NOT working
sub procedure TATA
TOTO()
end sub
sub procedure TOTO
end sub
* A full integration of ICD2 ( Microchip ) with USB connection in the compiler.. or a "script" to compile from MPLAB -- Suported in PBP
regards
-
- Posts: 573
- Joined: 25 Apr 2006 15:39
- Location: Cape Town, South Africa
-
- Posts: 231
- Joined: 14 Nov 2004 19:43
-
- Posts: 231
- Joined: 14 Nov 2004 19:43
2 more things.
I'm clumsy admittadly and I keep dragging around the tool bars by accident and they keep disappearing. The option to lock them would be great. My device selection window is gone.
One other thing, this might be a big request but some programs you can run as many windows of as you like. Like you can have as many internet explorer windows open and running as you like or work on as many word documents at the same time. It would be useful having the same feature in mB. I've just been working on two PICs talking to each other and was continually switching between project files.
I'm clumsy admittadly and I keep dragging around the tool bars by accident and they keep disappearing. The option to lock them would be great. My device selection window is gone.
One other thing, this might be a big request but some programs you can run as many windows of as you like. Like you can have as many internet explorer windows open and running as you like or work on as many word documents at the same time. It would be useful having the same feature in mB. I've just been working on two PICs talking to each other and was continually switching between project files.
i second that emotion !trust issues wrote: One other thing, this might be a big request but some programs you can run as many windows of as you like. Like you can have as many internet explorer windows open and running as you like or work on as many word documents at the same time. It would be useful having the same feature in mB. I've just been working on two PICs talking to each other and was continually switching between project files.
there are 10 types of people Those that understand binary and those that dont