Library functions can greatly reduce the need for all of us to reinvent the wheel, and allow us to more quickly complete our tasks. Using the excellent BASCOM AVR as a general guide, consider providing the following library functions for mikroBASIC for AVR:
1. R/C servo control (VERY common in robotics and small-scale automation)
2. TCP/IP
3. RC5 remote control (see also Bascom's SONYSEND statement)
4. AT keyboard emulation (that is, the processor emulates an AT keyboard connected via a PS/2 line; this allows for creating PC add-ons that provide input via standard keyboard functions)
5. Pulseout, in usec (convenience feature for people coming from BASIC Stamps)
6. Quadrature encoder support (reads biphase signals and provides count up or down)
7. Direct OnPinChange support for those AVR MCUs that provide this feature
8. Additional rudimentary string functions common to all Basic compilers/interpreters, such as LTrim, RTrim, Mid, etc.; however, I'd prefer more up-to-date statement names, such as SubStr instead of Mid, and Trim, with a parameter that indicates options for trimming
More to come...
-- Gordon
Additional pre-made library functions
Re: Additional pre-made library functions
Most of these things are under construction. The others will be implemented too, in some way or another.
Hello
I can't use Lcd_init with attiny2313, so I would like to use Lcd_init with all AVR.
here is exsample in mikroBASIC
I don't know how to set data pin seperatly to port.X.
In mikroC for Pic code looks
If there is a chance I wish that lcd_init looks like in mikroC.
thank you
I can't use Lcd_init with attiny2313, so I would like to use Lcd_init with all AVR.
here is exsample in mikroBASIC
Code: Select all
Lcd_Init(PORTD, 0, 1, PORTB, LCD_HI_NIBBLE)
In mikroC for Pic code looks
Code: Select all
Lcd_Config(&PORTD,1,2,0,3,5,4,6);
thank you
We will add this feature in some of the next releases.janezek wrote:In mikroC for Pic code looksIf there is a chance I wish that lcd_init looks like in mikroC.Code: Select all
Lcd_Config(&PORTD,1,2,0,3,5,4,6);
String library
I asked for full string library several month ago... Nothing happend. Except promises.
MikroPascal for AVR is still very inferior to BascomAVR. I am eagerly waiting for day for this fact to change. Only then I will buy Pascal. As thing going with this speed, I beleve that wuold be MikroPascal for AVR ver. 11.
MikroPascal for AVR is still very inferior to BascomAVR. I am eagerly waiting for day for this fact to change. Only then I will buy Pascal. As thing going with this speed, I beleve that wuold be MikroPascal for AVR ver. 11.