Nextion LCDs... How to comunicate ???


Closed Thread
Results 1 to 30 of 30

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: Nextion LCDs... How to comunicate ???

    Hi mpgmike.

    Do you have any comments about adapting your example code from the magazine article for a PIC18LF26K80 at 64mhz?

    Not sure if I was allowed to post it here? But it is downloadable from the N&V site.

    Thanks Peter

  2. #2
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: Nextion LCDs... How to comunicate ???

    The article used a PIC16F18426, because that's what I needed for the Small Engine Ignition Timing Controller. Using a PIC18F would require different CONFIGs and probably different SFR bits, but should work otherwise just talking to the Nextion. The K80 doesn't have enough Timers to do the full Timing Controller project.

    As for those videos, just upload 4 or 8 frames of the moving picture. Use the Timer feature (tm0) with a Variable (va0) to track sequence and the vis command to show each picture in sequence. Timer code should look like this
    Code:
    if(va0.val==1)
    {
     vis p0,1
     vis p1,0
     vis p2,0
     vis p3,0
    }else if(va0.val==2)
    {
     vis p0,0
     vis p1,1
     vis p2,0
     vis p3,0
    }else if(va0.val==3)
    .....
    }
    va0.val+=1
    if(va0.val==5)
    {
     va0.val=1
    }

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default Re: Nextion LCDs... How to comunicate ???

    Great! Thanks Mike.

    Ioannis

Similar Threads

  1. Two LCDs on one PIC
    By NavMicroSystems in forum Schematics
    Replies: 6
    Last Post: - 29th January 2013, 07:56
  2. LCDs
    By Demon in forum Adverts
    Replies: 1
    Last Post: - 21st April 2012, 03:14
  3. Two LCDs on one PIC
    By lester in forum FAQ - Frequently Asked Questions
    Replies: 3
    Last Post: - 22nd February 2005, 03:28
  4. Typles of LCDs
    By mslaney in forum General
    Replies: 1
    Last Post: - 16th December 2004, 15:01
  5. Graphic LCDs
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th April 2004, 11:04

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts