Can anyone help me with LCD commands?
I am currently using Proton basic (and thinking about switching to Swordfish) and some commands I use frequently are:
Print "Var1= ", Dec Var1 ' Display the decimal value of Var1
Print "Var1= ", Hex Var1 ' Display the hexadecimal value of Var1
Print "Var1= ", Bin Var1 ' Display the binary value of Var1
etc.....
Can anyone explain to me how these functions are handled in SwordFish?
Thank you
SamB
Help with LCD display formats
Moderators: David Barker, Jerry Messina
- David Barker
- Swordfish Developer
- Posts: 1214
- Joined: Tue Oct 03, 2006 7:01 pm
- Location: Saltburn by the Sea, UK
- Contact:
Code: Select all
Include "LCD.bas"
Include "Convert.bas"
dim Var1 as byte
LCD.WriteAt(1,1,DecToStr(Var1,3))
LCD.WriteAt(1,1,HexToStr(Var1,2))
LCD.WriteAt(1,1,BinToStr(Var1,8))
Thank You Mr. Barker .. It works!
I did see the Conversion module but the functions were confusing to me.
I guess in hindsight I should have tried them..
Thanks again..
SamB
I guess in hindsight I should have tried them..
Thanks again..
SamB