Announcement

Collapse
No announcement yet.

Analogue pin data to display

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Analogue pin data to display

    I have been programming picaxe's and using 4D displays for a year, now I have purchased a uLCD144-g2 and would like to use it as a stand alone instrument with the IO1 pin reading voltage and displaying it.
    I include my program can you tell me how to change IO1 to my var j.
    I have looked in the notes but this level of programming is above me at present

    #platform "GOLDELOX"

    #inherit "4DGL_16bitColours.fnc"

    func main()
    gfx_ScreenMode(LANDSCAPE) ; // change manually if orientation change

    gfx_MoveTo(0,0);

    gfx_ObjectColour(BLUE);
    gfx_BoxTo(127,127);
    pin_Set(ANALOGUE_10,IO1);
    pin_Read(IO1);
    while(j

  • #2


    like

    j := pin_Read(IO1);

    ?
    Mark

    Comment


    • #3


      Thanks, it works great going to use it as a voltmeter for my motorhome and use a digtil current sensors for amps.
      regards
      Kevin

      Comment

      Working...
      X