Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    87
    Views
    16,304

    Re: Has anyone tried AI with PICBASIC

    So this IC can't be used with PBP ?
  2. Replies
    87
    Views
    16,304

    Re: Has anyone tried AI with PICBASIC

    Does manual say anywhere that it won't ?
  3. Replies
    87
    Views
    16,304

    Re: Has anyone tried AI with PICBASIC

    Yes I know it is not legitimate, but compiler does not give any errors or warning, so it is not a bug, it is a feature?
    and I don't see any issues with IC address - it is done according to datasheet.
  4. Replies
    87
    Views
    16,304

    Re: Has anyone tried AI with PICBASIC

    No, this is ADS1115, as mentioned in comments in above post.
  5. Replies
    87
    Views
    16,304

    Re: Has anyone tried AI with PICBASIC

    I understand this as "start conversion(measurement)"

    As said in 2. of quote from the datasheet.
  6. Replies
    87
    Views
    16,304

    Re: Has anyone tried AI with PICBASIC

    Well, I tried that code and even after fixing syntax, it does not work.

    By the way, I tried to do my own code for that chip, but that also does not work - returns 64 for MSB and LSB bytes. The...
  7. Replies
    87
    Views
    16,304

    Re: Has anyone tried AI with PICBASIC

    Yes, correct.
    I have seen that with my own eyes - student asked to write a frequency meter code for arduino, she only specified that 4 digit, 7 segment display module was connected to the specified...
  8. Replies
    87
    Views
    16,304

    Re: Has anyone tried AI with PICBASIC

    Well, at least, above code is more manageable, and only two areas need to be fixed - MAKEWORD and floating point math. I'll fix that code tomorrow, compile it and give a try on a real hardware :)
  9. Replies
    87
    Views
    16,304

    Re: Has anyone tried AI with PICBASIC

    I told him that he's using GCbasic syntax instead of PBP, and asked to fix it.

    While he (she, it?) is no longer using GCBasic style subroutine calls, it now uses some C++ syntax :D



    '...
  10. Replies
    87
    Views
    16,304

    Re: Has anyone tried AI with PICBASIC

    I checked, that is Great Cow Basic syntax :)
  11. Replies
    87
    Views
    16,304

    Re: Has anyone tried AI with PICBASIC

    I finally give it some try, but the code does not looks like a picbasic? It seems like it is using a different syntax to call subroutines? (can't verify right now, do not have PBP on this PC)



    ...
  12. Replies
    9
    Views
    1,004

    Re: Avoiding too many GOSUBs, possible?

    Thanks, but there's no code in #4?
  13. Replies
    9
    Views
    1,004

    Re: Avoiding too many GOSUBs, possible?

    So if output is 11, then it will be 3+3+3+2

    8=3+3+2
    9=3+3+3
    10+3+3+3+1
    11=3+3+3+2
    12=3+3+3+3

    But these are sub-routines, which already include other statement, s so 3 here is actually doing...
  14. Replies
    9
    Views
    1,004

    Re: Avoiding too many GOSUBs, possible?

    Yes my code looks like that :D
    Priority I mean 10 can be achieved with 1+1+1+1+1+1+1+1+1+1 combo, but I need it to be done with 3+3+3+1

    So I need a formula which will break down the incoming...
  15. Replies
    9
    Views
    1,004

    Re: Avoiding too many GOSUBs, possible?

    I need somehow to break down the incoming number into 3s 2s and 1s, and giving them priority....
  16. Replies
    9
    Views
    1,004

    Avoiding too many GOSUBs, possible?

    Hello.
    I have some code, which, based on value of the X variable (changes from 1 to 30)
    Should call some GOSUBs as shown below:



    IF X=1 THEN GOSUB ONE
    IF X=2 THEN GOSUB ONE: GOSUB TWO
    IF...
  17. Re: SSD1306 OLED (72x40) I2C display from scratch

    And by the way, I don't see any reasons, why you can't write GLCD (which can't save file on windows 10-11) generated or any other software generated font into external EEPROM.
  18. Re: SSD1306 OLED (72x40) I2C display from scratch

    So expensive :)
    I'm buying 2nd hand 886 and 1829 for about 50 and 90 cents in China :)
    Since I'm not doing anything commercial, this is just fine for me.
  19. What happens when SEROUT2 is issued very fast? (trying to identify a protocol)

    Hello.
    I have a LED clock module, uses some chinese 8051 clone. The issue is, it has no contro button, so always starts at 00:00. But it do has RX and TX pins. There's no activity on these pins when...
  20. Re: SSD1306 OLED (72x40) I2C display from scratch

    This is very interesting thread, giving me some hope that I will be able to use OLED screens with PBP one day, but I have a quesiton - 24C64 or something like that costs under $1. Why not use it for...
  21. Re: NEC IR decoding issues (and another thread is closed)

    Yes, correct.

    I tried to make this code respond faster, by changing the pause value from 1000 to 100 (works fine), but when I change it from 100 to 10, now it improperly detects half of the...
  22. Re: NEC IR decoding issues (and another thread is closed)

    Fixed. Just dumped raw value of what is written BtnVal and it is either around 80 or 110, so I modified the code and now it works!
    But why so low values? due to slower PIC ?
  23. NEC IR decoding issues (and another thread is closed)

    Hello.
    I found this thread https://www.picbasic.co.uk/forum/showthread.php/15368-NEC-IR-Protocol-remote-decoder-help-me-before-I-kill-myself!
    But it is closed, so I can't answer there.

    I've used...
  24. Re: GOTO statement causing jitter in output frequency, can be this fixed?

    No it is not obvious, because it takes DIFFERENT times on each iteration of GOTO statement.
  25. Re: GOTO statement causing jitter in output frequency, can be this fixed?

    Thanks, that worked!
    But why it happens at all?
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4