Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Re: How you directly access serially chained devices, like LEDS, shift registers, etc

    On the Data Sheet of each PIC you will use. You learn the ins and outs of the sub section of the PIC and the registers that you have to manipulate directly.

    PBP had nothing to do with the MSSP/SPI...
  2. Replies
    2
    Views
    115

    Re: About 0.96" 128x64 SSD1306

    Your main loop is this:



    MAIN:

    COM=$A6:GOSUB SEND_COMMAND '$A6=NORMAL MODE;$A7=INVERSE MODE
    'PAUSE 100
    COM=$2E:GOSUB SEND_COMMAND
    COM=$27:GOSUB SEND_COMMAND
  3. Replies
    17
    Views
    2,594

    Re: max7219 4x 8x8 panels spi

    The 5x6 grid is not very roomy for good fonts. After a bit of experimenting I ended up with the rectangular fonts that follow. I thing they are readable from longer distance.



    @ dw...
  4. Replies
    17
    Views
    2,594

    Re: max7219 4x 8x8 panels spi

    Yes, that did it.

    Thanks,
    Ioannis
  5. Replies
    17
    Views
    2,594

    Re: max7219 4x 8x8 panels spi

    Well, results don't match.

    I do this:

    1. on GLCD Font Creator 5x6 is selected since that is what says in the program: '//GLCD FontSize : 5 x 6

    9169

    2. Then the character 48 is designed
  6. Replies
    17
    Views
    2,594

    Re: max7219 4x 8x8 panels spi

    Mikroe outputs the characters in columns but your data is in rows. Did you rotate them by hand or can GLCD do that?

    Ioannis
  7. Replies
    17
    Views
    2,594

    Re: max7219 4x 8x8 panels spi

    After making the paper and pencil homework, I was amazed by your thinking! So simple, so clever, so efficient!

    Ioannis
  8. Replies
    17
    Views
    2,594

    Re: max7219 4x 8x8 panels spi

    Yes, OK. But from 6 bytes you went to 3 words. Cannot understand the calculation you did.

    ;@ db 0x0E,0x10,0x1C,0x10,0x10,0x0E; // Code for char...
  9. Replies
    17
    Views
    2,594

    Re: max7219 4x 8x8 panels spi

    What is the logic in the packing of the characters into words?

    Ioannis
  10. Replies
    17
    Views
    2,594

    Re: max7219 4x 8x8 panels spi

    Well, I was just about to post that logic analyzer keeps data at zero. I was watching that and could not think what was wrong...!

    Doh!

    Thanks Richard. Works now.

    Ioannis
  11. Replies
    17
    Views
    2,594

    Re: max7219 4x 8x8 panels spi

    Since I have on hand only 16F1827, I modified the code for the PortC pins but as expected does not work. Modifications in red.

    I really do not know what lata.5 does in your code. Maybe a led to...
  12. Replies
    78
    Views
    16,779

    Re: Heart rate sensor MAX30102

    It is very important to:

    1. have the finger cleaned with alcohol before testing and also clean the sensor with alcohol too.
    2. Not pressing hard the finger on the sensor, the shell of the sensor...
  13. Replies
    5
    Views
    195

    Re: Arraywrite can't write word variables?

    You may have an older manual. I believe that mine is most recent and on page 37 that is attached here (and not 35) there is correct comment on BYTE and not WORD sized variable. Also nowhere within...
  14. Replies
    5
    Views
    195

    Re: Arraywrite can't write word variables?

    You are using con or byte variable to read from the array.

    Ioannis
  15. Replies
    17
    Views
    2,594

    Re: max7219 4x 8x8 panels spi

    Thanks!

    Really cheap toys to play with!

    Ioannis
  16. Replies
    17
    Views
    2,594

    Re: max7219 4x 8x8 panels spi

    A bit late but just noticed this valuable post! Thanks once again.

    Is this driver for such a display?
  17. Re: My code for ADC button handling, it works, but can it be slimmed down?

    Here there are not ports... Only a ADVAL from ADC since the buttons are read as analog voltage.

    Ioannis
  18. Re: My code for ADC button handling, it works, but can it be slimmed down?

    So at any given moment you will not know which button was hit and will have to scan again.

    But even so, a flag for each button pressed is needed to keep it from regarding it as new press.
    ...
  19. Re: My code for ADC button handling, it works, but can it be slimmed down?

    maybe I am a bit slow.. But how you can have 40 buttons but not 40 variables to distinct between them?

    Ioannis
  20. Re: My code for ADC button handling, it works, but can it be slimmed down?

    if !flag then
    adcin 1, adcval 'read keys
    SELECT CASE adcval
    CASE < 10 : left=left+1:flag=1 'detect button presses
    CASE < 100
    @ NOP
    CASE < 130 : right=right+1...
  21. Re: My code for ADC button handling, it works, but can it be slimmed down?

    Doesn't post#2 with the use of Select Case do what you want with the least code/var usage?

    Ioannis
  22. Re: 1Wire serial EEPROM, DS28EC20 and similar, any experience?

    The I2C works just fine. Used many times the I2CREAD and I2CWRITE commands.

    When there was a problem, was always my mistake in address, wrong use of commands (variable vs constant).

    Complete...
  23. Re: "WAIT" modifier with multiple choices - how to?

    Long ago, our member Melanie posted this great test program parsing strings and executing commands from a terminal through serial port, with no interrupts in a fast closed loop. It had great...
  24. Re: "WAIT" modifier with multiple choices - how to?

    The AND in the If statement is really memory hungry.

    Ioannis
  25. Re: "WAIT" modifier with multiple choices - how to?

    Yes you can. But maybe you can give an example of what you want?

    Ioannis
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4