News:

;) This forum is the property of Proton software developers

Main Menu

Nextion TFT Interface to Proton Basic

Started by Aries_Ryan, Jun 12, 2025, 01:07 PM

Previous topic - Next topic

Aries_Ryan

I bought a Nextion TFT Board a few months ago.
I tried to make a simple code for testing its function under the PIC16F628A PIC board to the TFT Nextion Board but I got unsuccess, there is no working, I can't see the text on the Nextion TFT.
I tried and tested it under the FT232 board with the editor there functioning properly.
Could something be wrong? with my code below, please help what is wrong here.

'----------------------------------- Device and Configuration -----------------------------------------------
Device = 16F628A                                                                      'Microprocessor Use   
Config INTRC_OSC_CLKOUT, MCLRE_OFF, LVP_OFF, WDT_OFF, PWRTE_OFF, CP_OFF, BODEN_OFF    'Configuration of bits
Declare Xtal = 4                                                                      'Use Crystal 4 Mhz
'------------------------------------- End Configuration -----------------------------------------------------

'--------------------------------------LCD Configuration -----------------------------------------------------
'--- Declare LCD Function here
'------------------------------------- End LCD Configuration --------------------------------------------------

Declare Hserial_Baud = 9600 ' Set to 9600 for communication Receiver and Transmitter baud rate
Declare Hserial_RCSTA = %10010000       ' Enable serial port and continuous receive
Declare Hserial_TXSTA = %00100100       ' Enable transmit and asynchronous mode
Declare HRSOut_Pin = PORTB.2            ' TX Pin 8 will connect to RX pin side to Nextion TFT Board
Declare HRSIn_Pin = PORTB.1             ' RX Pin 7 will connect to TX pin side to Nextion TFT Board
Declare Hserial_Clear = On ' Enable Error clearing on received characters

'------------------------------------- Prepare Comparator CMCON -----------------------------------------------
CMCON = 7                       'CMCON = 0b00100101
'--------------------------- Variable Addressing --------------------------------------------------------------
Dim Count1 As Word
Dim Letter As Word
'--- Dim variables here
'------------------------Another Variable Here ----------------------------------------------------------------
'--- Dim variables another here
'--------------------------------------------------------------------------------------------------------------
'--------------------------Symbol Here ------------------------------------------------------------------------
'---- Symbol PressBtn = PORTA.1       
'---------------------------------- Activates PORT Here -------------------------------------------------------
'----- PORTA=0 : PORTB=0     'Activated PORTA and PORTB as Output
'------------------------ Read an EEPROM -----------------------------------------------------------------------
'------------------------------------------Start Here To Run Text ----------------------------------------------

 
For Count1  = 0 To 16               
   
    Letter = LookUpL Count1,["-","P","R","O","T","O","N"," ","C","O","M","P","I","L","E","R"]
    Print At 1,Count1+1,Letter     'Run it for 16 then shift it 1 by one to 16
    Print At 2, 1, Rep "-"\16
   
'------------- Test Nextion Connection ----------------------------------------------------------------------------     
   
DelayMS 10
HRSOut "t0.txt="          'Command interface to Nextion text, will show to Nextion TFT
DelayMS 10
HRSOut 0x22
DelayMS 10
HRSOut Count1+1, Letter   'Write on Nextion TFT PROTON COMPILER
DelayMS 10
HRSOut 0x22
DelayMS 10
HRSOut "ÿÿÿ"              'Refer to Nextion Instruction set
DelayMS 100
     
Next


Print At 1,1, " Microcontroller   "        'Show this word once connect to LCD
DelayMS 10
HRSOut "t1.txt="     
DelayMS 10         
HRSOut 0x22
DelayMS 10
HRSOut " Microcontroller   "
DelayMS 10
HRSOut 0x22
DelayMS 10
HRSOut "ÿÿÿ"

DelayMS 50


End

 

Any help and suggestions would be greatly appreciated.

Ryan.

xvovanx

Hello!
I didn't go into the details of your code — here are some parts of the code from my very old program. Everything used to work, even with its own Cyrillic font.
'--------------------------- Setup UART ----------------------------- 

Declare Hserial_Baud 9600        
Declare Hserial_RCSTA %11010000  ' Enable serial port and continuous receive
Declare Hserial_TXSTA %01100100  ' Enable transmit and asynchronous mode 
Declare Hserial_SPBRG 25         ' Reg. SPBRG for 9600 speed
Declare Hserial_Clear On         

...................................................................................



'-------------------------------------------------------------------------------
UART_TO_NEXTION: 
 
HSerOut["info.err.val="]         
HSerOut[Dec Err]
HSerOut[0xFF]
HSerOut[0xFF]
HSerOut[0xFF]

HSerOut["info.p0.pic="]         
HSerOut[Dec info_p0_pic]
HSerOut[0xFF]
HSerOut[0xFF]
HSerOut[0xFF]                   

HSerOut["info.t0.picc="]         
HSerOut[Dec info_t0_picc]
HSerOut[0xFF]
HSerOut[0xFF]
HSerOut[0xFF]

If ErrNr=0 Then
HSerOut["info.t0.txt="]          ' для передачи текстовой ячейке русского текста (по кодировке ASCII ISO-8859-5)
HSerOut[0x22]                    ' кавычки
HSerOut[""]
HSerOut[0x22]                    ' кавычки
HSerOut[0xFF]
HSerOut[0xFF]
HSerOut[0xFF]                                   
EndIf
 
If ErrNr=310 Then                ' текст "Произошла ошибка работы горелки" (по кодировке ASCII ISO-8859-5)
HSerOut["info.t0.txt="]          ' для передачи текстовой ячейке русского текста (по кодировке ASCII ISO-8859-5)
HSerOut[0x22]                    ' кавычки
    HSerOut[0xBF,0xE0,0XDE,0XD8,0XD7,0XDE,0XE8,0XDB,0XD0," ",0XDE,0XE8,0XD8,0XD1,0XDA,0XD0," ",0XE0,0XD0,0XD1,0XDE,0XE2,0XEB," ",0XD3,0XDE,0XE0,0XD5,0XDB,0XDA,0XD8]             
HSerOut[0x22]                    ' кавычки
HSerOut[0xFF]
HSerOut[0xFF]
HSerOut[0xFF]                                   
EndIf 

.................................................................................

Dompie

#2
Text removed because I haven't read @Aries-Ryan message correct.



Succes with your project.
Johan

RGV250

Hi,
I think i have interpreted you are using the 232 to send from the PIC to the PC and simulate with the editor. From what I (think I know) is the 232 inverts the data. When you connect to the Nextion are you using TTL or via the 232 converter.

Regards,
Bob

Aries_Ryan

Quote from: xvovanx on Jun 12, 2025, 03:06 PMHello!
I didn't go into the details of your code — here are some parts of the code from my very old program. Everything used to work, even with its own Cyrillic font.
'--------------------------- Setup UART ----------------------------- 

Declare Hserial_Baud 9600       
Declare Hserial_RCSTA %11010000  ' Enable serial port and continuous receive
Declare Hserial_TXSTA %01100100  ' Enable transmit and asynchronous mode 
Declare Hserial_SPBRG 25        ' Reg. SPBRG for 9600 speed
Declare Hserial_Clear On       

...................................................................................



'-------------------------------------------------------------------------------
UART_TO_NEXTION: 
 
HSerOut["info.err.val="]         
HSerOut[Dec Err]
HSerOut[0xFF]
HSerOut[0xFF]
HSerOut[0xFF]

HSerOut["info.p0.pic="]       
HSerOut[Dec info_p0_pic]
HSerOut[0xFF]
HSerOut[0xFF]
HSerOut[0xFF]                   

HSerOut["info.t0.picc="]         
HSerOut[Dec info_t0_picc]
HSerOut[0xFF]
HSerOut[0xFF]
HSerOut[0xFF]

If ErrNr=0 Then
HSerOut["info.t0.txt="]          ' для передачи текстовой ячейке русского текста (по кодировке ASCII ISO-8859-5)
HSerOut[0x22]                    ' кавычки
HSerOut[""]
HSerOut[0x22]                    ' кавычки
HSerOut[0xFF]
HSerOut[0xFF]
HSerOut[0xFF]                                   
EndIf
 
If ErrNr=310 Then                ' текст "Произошла ошибка работы горелки" (по кодировке ASCII ISO-8859-5)
HSerOut["info.t0.txt="]          ' для передачи текстовой ячейке русского текста (по кодировке ASCII ISO-8859-5)
HSerOut[0x22]                    ' кавычки
    HSerOut[0xBF,0xE0,0XDE,0XD8,0XD7,0XDE,0XE8,0XDB,0XD0," ",0XDE,0XE8,0XD8,0XD1,0XDA,0XD0," ",0XE0,0XD0,0XD1,0XDE,0XE2,0XEB," ",0XD3,0XDE,0XE0,0XD5,0XDB,0XDA,0XD8]             
HSerOut[0x22]                    ' кавычки
HSerOut[0xFF]
HSerOut[0xFF]
HSerOut[0xFF]                                   
EndIf 

.................................................................................


Hi xvovanx,

Thanks for the response
As well as reference from your post I tried place this Declare:
Declare Hserial_SPBRG 25        ' Reg. SPBRG for 9600 speed  And now I can see my text on Nextion TFT Board, If this Declare I place to value 0 it won't working, display no appear.

What a PIC that you use for this ?.


Thanks.
ARyan.


Aries_Ryan

Quote from: Dompie on Jun 13, 2025, 09:41 AMText removed because I haven't read @Aries-Ryan message correct.



Succes with your project.
Johan
Hi Dompie,
The project was running, now I still have a problem with this :
HRSOut Count1+1, Letter   'Write on Nextion TFT PROTON COMPILER Could there be another method to make it work.

In virtual use Virtual Terminal on a Proteus it working, but in real hardware it doesn't.

Thanks.
ARyan.


Aries_Ryan

Quote from: RGV250 on Jun 13, 2025, 10:45 AMHi,
I think i have interpreted you are using the 232 to send from the PIC to the PC and simulate with the editor. From what I (think I know) is the 232 inverts the data. When you connect to the Nextion are you using TTL or via the 232 converter.

Regards,
Bob

Hi Bob.
To make a page design on Nextion TFT Board :
I use a Serial FT232 Converter Board, this board is very cheap on the market, then I connect TX to RX and RX to TX, Between FT232 Board to Nextion TFT Board.
TFT In the editor Nextion is GUI just place text - button or other, then I make compile, once okay then I debug to ensure it no have an errors, next just upload to editor to the Nextion TFT Board, during this process we can see the progress on Nextion TFT Board.
If we want to make virtual from the Nextion TFT Editor to Proteus, I think we need to use a Proteus, and make sure we need to add Compie in the Proteus, then run a Virtual Serial Port Emulator and for W64 Bit this App have a licence except W32 Bit is a freeware.
I still have a problem, this code won't working.
HRSOut Count1+1, Letter   'Write on Nextion TFT PROTON COMPILER
Thanks.
ARyan.

Maxi

Here is an example that I use and works 100%. The outputs of the processor are directly connected to the screen, there is nothing in between.



'18f25k22 pin 27 TX >> nextion RX
'18f25k22 pin 28 RX >> nextion TX
 
'-------------------------------------------------------------------------------
Device 18F25K22
Declare Xtal=8

RCSTA1.7=0
RCSTA2.7=1

OSCCON.6=1
OSCCON.5=1
OSCCON.4=0

OSCCON.1=1
OSCCON.0=1   

;-------------------------------------------------------------------------------
;**** Added by Fuse Configurator ****
; Use the Fuse Configurator plug-in to change these settings


Config_Start
  FOSC = INTIO67    ;Internal oscillator block
  PLLCFG = OFF    ;Oscillator used directly
  PRICLKEN = On    ;Primary clock enabled
  FCMEN = OFF    ;Fail-Safe Clock Monitor disabled
  IESO = OFF    ;Oscillator Switchover mode disabled
  PWRTEN = On    ;Power up timer enabled
  BOREN = SBORDIS ;Brown-out Reset enabled in hardware only and disabled in Sleep mode (SBOREN is disabled)
  BORV = 250    ;VBOR set to 2.50 V nominal
  WDTEN = OFF    ;Watch dog timer is always disabled. SWDTEN has no effect.
  WDTPS = 32768    ;1:32768
  CCP2MX = PORTC1    ;CCP2 input/output is multiplexed with RC1
  PBADEN = OFF
  CCP3MX = PORTC6    ;P3A/CCP3 input/output is mulitplexed with RC6
  HFOFST = OFF    ;HFINTOSC output and ready status are not delayed by the oscillator stable status
  T3CMX = PORTC0    ;T3CKI is on RC0
  P2BMX = PORTC0    ;P2B is on RC0
  MCLRE = INTMCLR    ;RE3 input pin enabled; MCLR disabled
  STVREN = OFF    ;Stack full/underflow will not cause Reset
  LVP = OFF    ;Single-Supply ICSP disabled
  XINST = OFF    ;Instruction set extension and Indexed Addressing mode disabled (Legacy mode)
  Debug = OFF    ;Disabled
  Cp0 = On    ;Block 0 (000800-001FFFh) code-protected
  CP1 = On    ;Block 1 (002000-003FFFh) code-protected
  CP2 = On    ;Block 2 (004000-005FFFh) code-protected
  CP3 = On    ;Block 3 (006000-007FFFh) code-protected
  CPB = On    ;Boot block (000000-0007FFh) code-protected
  CPD = OFF    ;Data EEPROM not code-protected
  WRT0 = OFF    ;Block 0 (000800-001FFFh) not write-protected
  WRT1 = OFF    ;Block 1 (002000-003FFFh) not write-protected
  WRT2 = OFF    ;Block 2 (004000-005FFFh) not write-protected
  WRT3 = OFF    ;Block 3 (006000-007FFFh) not write-protected
  WRTC = OFF    ;Configuration registers (300000-3000FFh) not write-protected
  WRTB = OFF    ;Boot Block (000000-0007FFh) not write-protected
  WRTD = OFF    ;Data EEPROM not write-protected
  EBTR0 = OFF    ;Block 0 (000800-001FFFh) not protected from table reads executed in other blocks
  EBTR1 = OFF    ;Block 1 (002000-003FFFh) not protected from table reads executed in other blocks
  EBTR2 = OFF    ;Block 2 (004000-005FFFh) not protected from table reads executed in other blocks
  EBTR3 = OFF    ;Block 3 (006000-007FFFh) not protected from table reads executed in other blocks
  EBTRB = OFF    ;Boot Block (000000-0007FFh) not protected from table reads executed in other blocks
Config_End

;**** End of Fuse Configurator Settings ****
;-------------------------------------------------------------------
   
    TRISA=%00010111:TRISB=%10000100:TRISC=%01000100
    
    RCSTA1.7=0
    RCSTA2.7=1
   
    CM1CON0.7=0
    CM2CON0.7=0
    VREFCON0.7=0
    VREFCON1.7=0
    WPUB=%00000000
   
    ADCON0=%00000011
    ADCON2=%10101010

    ANSELA=%00000111
    ANSELB=%00000100
    ANSELC=%01000000

DelayMS 1500
RCSTA2.7=1   
'---------------------------------------------------
'8mhz, 57600
Declare Hserial2_Baud=57600
Declare Hserial2_RCSTA=$90
Declare Hserial2_TXSTA=$24
Declare Hserial2_SPBRG=34 '57600 Baud @ 16MHz, -0,79%
Declare Hserial2_Clear=On
SPBRGH2 = 0
BAUDCON2.3 = 1
'---------------------------------------------------
PORTB.7=1
HRSOut2 "bkcmd=",Dec 0,"ÿÿÿ"
HRSOut2 "bauds=57600","ÿÿÿ"
HRSOut2 "dim=",Dec 100,"ÿÿÿ"

Dim Map2 As Word
Map2=1234

LoopA:

HRSOut2 "map0.val=",Dec Map2,"ÿÿÿ"

GoTo LoopA






Aries_Ryan

Quote from: Maxi on Today at 07:09 AMHere is an example that I use and works 100%. The outputs of the processor are directly connected to the screen, there is nothing in between.



'18f25k22 pin 27 TX >> nextion RX
'18f25k22 pin 28 RX >> nextion TX
 
'-------------------------------------------------------------------------------
Device 18F25K22
Declare Xtal=8

RCSTA1.7=0
RCSTA2.7=1

OSCCON.6=1
OSCCON.5=1
OSCCON.4=0

OSCCON.1=1
OSCCON.0=1   

;-------------------------------------------------------------------------------
;**** Added by Fuse Configurator ****
; Use the Fuse Configurator plug-in to change these settings


Config_Start
  FOSC = INTIO67    ;Internal oscillator block
  PLLCFG = OFF    ;Oscillator used directly
  PRICLKEN = On    ;Primary clock enabled
  FCMEN = OFF    ;Fail-Safe Clock Monitor disabled
  IESO = OFF    ;Oscillator Switchover mode disabled
  PWRTEN = On    ;Power up timer enabled
  BOREN = SBORDIS ;Brown-out Reset enabled in hardware only and disabled in Sleep mode (SBOREN is disabled)
  BORV = 250    ;VBOR set to 2.50 V nominal
  WDTEN = OFF    ;Watch dog timer is always disabled. SWDTEN has no effect.
  WDTPS = 32768    ;1:32768
  CCP2MX = PORTC1    ;CCP2 input/output is multiplexed with RC1
  PBADEN = OFF
  CCP3MX = PORTC6    ;P3A/CCP3 input/output is mulitplexed with RC6
  HFOFST = OFF    ;HFINTOSC output and ready status are not delayed by the oscillator stable status
  T3CMX = PORTC0    ;T3CKI is on RC0
  P2BMX = PORTC0    ;P2B is on RC0
  MCLRE = INTMCLR    ;RE3 input pin enabled; MCLR disabled
  STVREN = OFF    ;Stack full/underflow will not cause Reset
  LVP = OFF    ;Single-Supply ICSP disabled
  XINST = OFF    ;Instruction set extension and Indexed Addressing mode disabled (Legacy mode)
  Debug = OFF    ;Disabled
  Cp0 = On    ;Block 0 (000800-001FFFh) code-protected
  CP1 = On    ;Block 1 (002000-003FFFh) code-protected
  CP2 = On    ;Block 2 (004000-005FFFh) code-protected
  CP3 = On    ;Block 3 (006000-007FFFh) code-protected
  CPB = On    ;Boot block (000000-0007FFh) code-protected
  CPD = OFF    ;Data EEPROM not code-protected
  WRT0 = OFF    ;Block 0 (000800-001FFFh) not write-protected
  WRT1 = OFF    ;Block 1 (002000-003FFFh) not write-protected
  WRT2 = OFF    ;Block 2 (004000-005FFFh) not write-protected
  WRT3 = OFF    ;Block 3 (006000-007FFFh) not write-protected
  WRTC = OFF    ;Configuration registers (300000-3000FFh) not write-protected
  WRTB = OFF    ;Boot Block (000000-0007FFh) not write-protected
  WRTD = OFF    ;Data EEPROM not write-protected
  EBTR0 = OFF    ;Block 0 (000800-001FFFh) not protected from table reads executed in other blocks
  EBTR1 = OFF    ;Block 1 (002000-003FFFh) not protected from table reads executed in other blocks
  EBTR2 = OFF    ;Block 2 (004000-005FFFh) not protected from table reads executed in other blocks
  EBTR3 = OFF    ;Block 3 (006000-007FFFh) not protected from table reads executed in other blocks
  EBTRB = OFF    ;Boot Block (000000-0007FFh) not protected from table reads executed in other blocks
Config_End

;**** End of Fuse Configurator Settings ****
;-------------------------------------------------------------------
   
    TRISA=%00010111:TRISB=%10000100:TRISC=%01000100
     
    RCSTA1.7=0
    RCSTA2.7=1
   
    CM1CON0.7=0
    CM2CON0.7=0
    VREFCON0.7=0
    VREFCON1.7=0
    WPUB=%00000000
   
    ADCON0=%00000011
    ADCON2=%10101010

    ANSELA=%00000111
    ANSELB=%00000100
    ANSELC=%01000000

DelayMS 1500
RCSTA2.7=1   
'---------------------------------------------------
'8mhz, 57600
Declare Hserial2_Baud=57600
Declare Hserial2_RCSTA=$90
Declare Hserial2_TXSTA=$24
Declare Hserial2_SPBRG=34 '57600 Baud @ 16MHz, -0,79%
Declare Hserial2_Clear=On
SPBRGH2 = 0
BAUDCON2.3 = 1
'---------------------------------------------------
PORTB.7=1
HRSOut2 "bkcmd=",Dec 0,"ÿÿÿ"
HRSOut2 "bauds=57600","ÿÿÿ"
HRSOut2 "dim=",Dec 100,"ÿÿÿ"

Dim Map2 As Word
Map2=1234

LoopA:

HRSOut2 "map0.val=",Dec Map2,"ÿÿÿ"

GoTo LoopA






Hi Maxi,
Thanks for your advice, I will keep  your sample to my archive.
So far my code has been working, only I still have a problem with
Letter = LookUpL Count1,["-","P","R","O","T","O","N"," ","C","O","M","P","I","L","E","R"]
QuoteHRSOut Count1+1, Letter  'Write on Nextion TFT PROTON COMPILER   
Now I change to
  HRSOut Letter ,Count1+1  'Write on Nextion TFT PROTON COMPILER  Above parameter is working I can see it on Nextion TFT, but still have a problem this run only same columns, it can't move to next columns, seems like Nextion TFT procedure still incorrect inside my code.

I hope someone here know how to move to next coloumn.


Thanks.
ARyan.



Aries_Ryan

Quote from: Aries_Ryan on Jun 12, 2025, 01:07 PMI bought a Nextion TFT Board a few months ago.
I tried to make a simple code for testing its function under the PIC16F628A PIC board to the TFT Nextion Board but I got unsuccess, there is no working, I can't see the text on the Nextion TFT.
I tried and tested it under the FT232 board with the editor there functioning properly.
Could something be wrong? with my code below, please help what is wrong here.

'----------------------------------- Device and Configuration -----------------------------------------------
Device = 16F628A                                                                      'Microprocessor Use   
Config INTRC_OSC_CLKOUT, MCLRE_OFF, LVP_OFF, WDT_OFF, PWRTE_OFF, CP_OFF, BODEN_OFF    'Configuration of bits
Declare Xtal = 4                                                                      'Use Crystal 4 Mhz
'------------------------------------- End Configuration -----------------------------------------------------

'--------------------------------------LCD Configuration -----------------------------------------------------
'--- Declare LCD Function here
'------------------------------------- End LCD Configuration --------------------------------------------------

Declare Hserial_Baud = 9600 ' Set to 9600 for communication Receiver and Transmitter baud rate
Declare Hserial_RCSTA = %10010000       ' Enable serial port and continuous receive
Declare Hserial_TXSTA = %00100100       ' Enable transmit and asynchronous mode
Declare HRSOut_Pin = PORTB.2            ' TX Pin 8 will connect to RX pin side to Nextion TFT Board
Declare HRSIn_Pin = PORTB.1             ' RX Pin 7 will connect to TX pin side to Nextion TFT Board
Declare Hserial_Clear = On ' Enable Error clearing on received characters

'------------------------------------- Prepare Comparator CMCON -----------------------------------------------
CMCON = 7                       'CMCON = 0b00100101
'--------------------------- Variable Addressing --------------------------------------------------------------
Dim Count1 As Word
Dim Letter As Word
'--- Dim variables here
'------------------------Another Variable Here ----------------------------------------------------------------
'--- Dim variables another here
'--------------------------------------------------------------------------------------------------------------
'--------------------------Symbol Here ------------------------------------------------------------------------
'---- Symbol PressBtn = PORTA.1       
'---------------------------------- Activates PORT Here -------------------------------------------------------
'----- PORTA=0 : PORTB=0     'Activated PORTA and PORTB as Output
'------------------------ Read an EEPROM -----------------------------------------------------------------------
'------------------------------------------Start Here To Run Text ----------------------------------------------

 
For Count1  = 0 To 16               
   
    Letter = LookUpL Count1,["-","P","R","O","T","O","N"," ","C","O","M","P","I","L","E","R"]
    Print At 1,Count1+1,Letter     'Run it for 16 then shift it 1 by one to 16
    Print At 2, 1, Rep "-"\16
   
'------------- Test Nextion Connection ----------------------------------------------------------------------------     
   
DelayMS 10
HRSOut "t0.txt="          'Command interface to Nextion text, will show to Nextion TFT
DelayMS 10
HRSOut 0x22
DelayMS 10
HRSOut Count1+1, Letter   'Write on Nextion TFT PROTON COMPILER
DelayMS 10
HRSOut 0x22
DelayMS 10
HRSOut "ÿÿÿ"              'Refer to Nextion Instruction set
DelayMS 100
     
Next


Print At 1,1, " Microcontroller   "        'Show this word once connect to LCD
DelayMS 10
HRSOut "t1.txt="     
DelayMS 10         
HRSOut 0x22
DelayMS 10
HRSOut " Microcontroller   "
DelayMS 10
HRSOut 0x22
DelayMS 10
HRSOut "ÿÿÿ"

DelayMS 50


End

 

Any help and suggestions would be greatly appreciated.

Ryan.
Hi All,
Thank you so much has been participate.
The problem right now is solve
Last code should be place is
HRSOut "t3.txt=t3.txt+"    'Command to shift left to right text, will show to Nextion TFT Dont forget to adding this
Declare Hserial_SPBRG 25         ' Reg. SPBRG for 9600 speed Advice By :  xvovanx 
Again, Thank you everyone here.


Thanks.
ARyan.