AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Picbasic pro 3 problem printing variable7/30/2023 Serout 0,T2400,(254,192) ' move the cursor to the second line Which notation you choose to use is a matter of preference. Serout 0,T2400,($FE,$C0) ' move the cursor to the second line Could also be written with decimal (base 10) notation as: Hexadecimal is specified by a dollar sign ($) prefix. Note that in the above example, the control codes were written in hexadecimal (base 16). The program will clear the LCD and send the message: “Wherever you go, there you are” at 2400 baud (true mode), wait for two seconds and then loop indefinitely. Serout 0,T2400,(" there you are ") ' send the string “ there you are “ Serout 0,T2400,($FE,$C0) ' move the cursor to the second line Serout 0,T2400,("Wherever you go") ' send the string “wherever you go' The following PIC Basic program demonstrates sending data and commands to the LCD: Connect the serial input of the LCD to PortB.0 (pin 6) of a PIC Microcontroller.
0 Comments
Read More
Leave a Reply. |