Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: CuriousOne; Keyword(s):

Search: Search took 0.01 seconds.

  1. Re: "Variable already an alias" - is there a way to avoid this?

    By the way, is there a way to arraywrite to predefined area of array?

    arraywrite topline, ["mose"]

    writes to 0 to 3 positions of array, but say I want to write this text from 4 to 7 positions,...
  2. Re: "Variable already an alias" - is there a way to avoid this?

    Thanks, that works!
  3. Re: "Variable already an alias" - is there a way to avoid this?

    Bringing up an old thread...

    I have CD4514 connected with it's ABCD inputs to upper 4 bits of PORT.D (PORTD4-7)
    I have variable that changes values between 0 and 16. Name is A
    How Can I directly...
  4. Re: "Variable already an alias" - is there a way to avoid this?

    I've added external drivers to circuitry, so voltage now not an issue, so brightness also can be increased :)
  5. Re: "Variable already an alias" - is there a way to avoid this?

    And by adding properly synced multiplexing, even nicer effects can be obtained. Too bad they do not make RGB 7 segment displays in manageable size or price....

    8887

    As you can see, greens are...
  6. Re: "Variable already an alias" - is there a way to avoid this?

    https://youtu.be/EoPaM2Jru24

    Here version with HPWM controlled color setting mode :)
  7. Re: "Variable already an alias" - is there a way to avoid this?

    Well my circuit is already built, software written and it works fine, just it takes about 7.3k memory, so I'd like to slim it down. If anyone want to build a LED clock, with directly driven segments,...
  8. Re: "Variable already an alias" - is there a way to avoid this?

    Well you're the pros, for me a lot of these strange brackets and other syntax things are quite hard to understand, because I've learned BASIC on ZX Spectrum, almost 35 years ago :) So I'm asking to...
  9. Re: "Variable already an alias" - is there a way to avoid this?

    So say

    FOR A=1 to 20
    HIGH PORTA+A
    NEXT

    will work?
  10. Re: "Variable already an alias" - is there a way to avoid this?

    Simple.

    To make code shorter.

    I've posted an example above. Yes it works but I have 40 subroutines and 40 IF THEN's in it. In case of redefinable port<>variable, it would be reduced 4 times.
  11. Re: "Variable already an alias" - is there a way to avoid this?

    Why pin definition should be constant?

    OK say compiler substitutes say code "LD, B(3)" which say means making PORTB.3 high each time I'm making HIGH BUZ because previously I had defined BUZ var...
  12. Re: "Variable already an alias" - is there a way to avoid this?

    Well, we have been also told that PBP can't do string variables and this is chip limitation, but there are some other compilers, which can do variables on PICs. So I believe, this "on the fly" port...
  13. Re: "Variable already an alias" - is there a way to avoid this?

    I have 4 piece of 7 segment led displays connected directly to MCU pins, via 220 ohm resistor, common anode going to Vdd. I wrote a routine, which allows to display any number (X) on any digit (Y)....
  14. Re: "Variable already an alias" - is there a way to avoid this?

    Yes I see.
    Even this does not works:

    IF X=1 then
    Y var PORTA.0
    else
    Y var PORTA.1

    So this is just compiler limitation, right?
  15. "Variable already an alias" - is there a way to avoid this?

    Say I want to have following code, when on specific condition, either of subroutines will be called.



    '1ST DIGIT


    DG1:
    AX VAR PORTD.3:BX VAR PORTC.4:CX VAR PORTC.1:DX VAR PORTC.2: EX VAR...
Results 1 to 15 of 15