• Pic® Basic


  • MidPoint

    A library module for use with Library Manager by JohnGB. This module has been written by Tim Box (Tim on PDS forum). The library module is offered on an as-is basis with no warranty as to its effectiveness, operation or reliability. Users use it at their own risk.

    Adds a new command called MidPoint

    Syntax

    MidPoint High Number, Low Number

    Overview

    Returns the mid point between the two numbers.

    Operators

    High Number – a number, byte or word variable Low Number – a number, byte or word variable

    Code:
    Include "PROTON_4.INC"
    Dim A As Word
    Dim B As Word
    
        A = 500
        B = MidPoint A,200
        HRSOut "The mid point of ", Dec A,", 200 is ", Dec B
        Stop


    Download module

    Download: MidPoint
  • Recent Activity

    John Drew-26

    Hx711 calibration

    Thread Starter: amod

    Iam using load cell amplifier HX711 module.I have got raw values from module but iam not able to calibrate with load cell.I want make a universal...

    John Drew Yesterday, 23:40 Go to last post
    Tim-107

    PCB Stencils

    Thread Starter: SimonJA

    I've made a lot of PCB's but never used stencils so thought I would give them a try. I usually use a syringe to dispense the solder paste but it's...

    Tim Yesterday, 19:51 Go to last post