Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.02 seconds; generated 46 minute(s) ago.

  1. Re: How to measure how long I pressed a button ?

    i know nothing about ancient history

    and the number is word sized anyway
  2. Re: How to measure how long I pressed a button ?

    a bit fancier




    #CONFIGcfg = _INTRC_OSC_NOCLKOUT
    cfg&= _WDT_ON
    cfg&= _PWRTE_OFF
    cfg&= _MCLRE_ON
    cfg&= _BODEN_ON
  3. Re: How to measure how long I pressed a button ?

    the chances of AI finding well written pbp code to plagiarize from are slim at best.
    afaics AI can only write code if it can plagiarize it from somewhere, the code only works if the stolen code...
  4. Re: How to measure how long I pressed a button ?

    i possibly could be enough but you never reevaluate it until the whole timing mess has long completed
  5. Re: How to measure how long I pressed a button ?

    you have set timer1 to overflow every 16.38 mS , you never count the overflows
    also adding 65535 to a word var seems very odd do you actually intend to subtract 1


    i can't see how any of this...
  6. Re: How to measure how long I pressed a button ?

    No it just sets it to use external clock

    9651
  7. Re: How to measure how long I pressed a button ?

    in order to measure a buttons hold time you need to either note time button was pressed then the time button was released
    the duration is release time - when pressed time, or when button is...
  8. Replies
    8
    Views
    223

    Re: Creality, worst customer support

    just tried the "fussy" outer shell option on my ender5+, i like it and it hardly slows a print at all . i never knew it was there until now
    thanks for that, its a nice way to disguise the layers. i...
  9. Replies
    8
    Views
    223

    Re: Creality, worst customer support

    the motherboards are just arduino mega2650 dressed up a bit with a nice cnc coat on, you can recover them using another arduino as a icsp programmer.
    i used my old mboard as a grbl core xy laser...
  10. Replies
    8
    Views
    223

    Re: Creality, worst customer support

    my ender5 plus did that a couple of times. i think i have it sorted.
    make sure the thermistor is secure in its hole, don't over tighten the holding screw and cut through the insulation and do fill...
  11. Replies
    4
    Views
    173

    Re: Timer 0 not accurate

    that won't help at all, you need to ensure that the config is correct and that osccon reg is set appropriately
    define OSC just tells compiler what freq you think you are running at, it does...
  12. Replies
    148
    Views
    22,684

    Re: New project - MSFS C++ USB interface

    I just tape the back side and fill the hole [if you use the thick stuff you can get a nice dome if your quick], shine led for a few seconds and ..
    volar instant clear led bezel.

    easiest if light...
  13. Replies
    148
    Views
    22,684

    Re: New project - MSFS C++ USB interface

    clear UV set resin is great for making small transparent windows in housings, laser cut acrylic sheet can make light pipes [best used edge on], you lose a bit of brightness though
  14. Replies
    4
    Views
    173

    Re: Timer 0 not accurate

    how have you set FOSC for the pic.
    there is no OSCCON REGISTER setting in your code , the CONFIG settings are not shown, unless you have a 4mz Xtal setup
    how sure are you that FOSC is the 4mhz you...
  15. Re: I2C Communication between PIC18F4550 and AS5600

    the data sheet address $36 is a 7 bit address pbp uses an 8 bit address scheme




    You may well have to "configure" the device but for an i2c read transaction that is an unnecessary step

    ...
  16. Re: I2C Communication between PIC18F4550 and AS5600

    the data sheet address is a 7 bit address pbp uses 8 bit address
    what are ic2writes for ?
    they seem to be of no value that i can see
    you defined sda and scl why not use them ?

    more like
    ...
  17. Replies
    148
    Views
    22,684

    Re: New project - MSFS C++ USB interface

    i find super glue won't last on "common garden variety" pla. there are quite a few pla variants around now, silky smooth , pla+ , pla super strong
    that i have not tried gluing up. glue may not...
  18. Replies
    148
    Views
    22,684

    Re: New project - MSFS C++ USB interface

    are you printing in pla ?
    if so what glue are you using , the only glue i find that works well is that nasty solvent based scigrip 16 [dimethylene chloride ?]
    once you crack the seal it quickly...
  19. Replies
    95
    Views
    36,023

    Re: Graphical Displays with PBP3

    a portrait version

    9645



    '*******************************************************************
    '* Name : SSD1306p.pbpmod *
    '* Author :...
  20. Replies
    95
    Views
    36,023

    Re: Graphical Displays with PBP3

    in theory portrait mode should be easier and faster than what i have now, the screen width 64 height 128
    and the buffer sent to the screen in horiz fill mode nice and sequentially [ might need bit...
  21. Re: Discovering PIC 16F18446 - TOGGLE "ASM WARNING - Invalid RAM location"

    this works perfectly for me, i doubt you implemented it exactly as posted
    i notice you don't set the pins used to digital mode

    another correct way


    ' PIC 16F18426
    #CONFIG
    __config...
  22. Replies
    95
    Views
    36,023

    Re: Graphical Displays with PBP3

    bmp placement fixed , note that horiz placement is byte aligned ie for a 128 bit wide display there are 16 bytes therefore 16 positions max
  23. Replies
    95
    Views
    36,023

    Re: Graphical Displays with PBP3

    i have had a look at how those programs [lcdassist and glcd tool] manage the remainder bits when a bitmap is not an 8bit multiple in width
    and it defeats me , i cannot get how the "stray" bits of...
  24. Replies
    95
    Views
    36,023

    Re: Graphical Displays with PBP3

    the bmp image width needs to be a multiple of 8 by the look of it
    post the original bmp image if you want me to look further into it
  25. Replies
    101
    Views
    85,560

    Re: SSD1306 INCLUDE for PBP3

    i cant find the gltools on the web any more
    i did find my install version in my downloads folder
    at your own risk
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4