$hwstack = 128
$swstack = 128
$framesize = 128
$regfile = "m16def.Dat"
$crystal = 16000000
$baud = 19200
'$lib "LCD-EPSONmy.LIB"
'$lib "lcd-pcf8833my.lib" 'Nokia 6100 color display
'$lib "LCD-SIEMENS_S65_LS020_C.LIB" 'Siemens S65 LS020 color display support
$lib "LCD-EPSON_L2F50_C.LBX" 'Siemens S65 L2F50 color display support
Config Graphlcd = Color , Controlport = Portc , Cs = 5 , Rs = 7 , Scl = 4 , Sda = 3 , Reset = 6
Config Timer1 = Pwm , Pwm = 10 , Prescale = 1 , Compare A Pwm = Clear Up , Compare B Pwm = Disconnect
Dim N As Byte
Dim Color As Byte
Dim Colorbac As Byte
Const Black = 0 '&B00000000
Const Brown = 136 '128
Const Darkred = &B11000000 '192
Const Red = &B11010000 '208
Const Orange = &B11101000 '232
Const Yellow = &B11111000 '248
Const Darkgreen = &B00011000 '41
Const Green = &B00101001 '48
Const Brightgreen = &B01111011 '123 &B00011110
Const Brightblue = &B00111111 '63
Const Blue = &B00100111 '39
Const Darkblue = &B00000110 '6
Const Violett = 143 '143
Const White = 255 '255 &B1111111111111111
'
Const áĺëűé = &HFF
Const ÷¸đíűé = &H00
Dim N1 As Byte
Cls
For N = 0 To 120
Circle(88 , 65) , N , Brightblue
If N > 20 Then
N1 = N - 20
Circle(88 , 65) , N1 , Green
End If
Next N
Wait 2
Color = áĺëűé
Colorbac = &HEF
Pwm1a = 255
Pset 32 , 110 , Red
Wait 1
Cls 'clear the display
Wait 1
For Color = 0 To 127
Line(color , 0) -(color , 65) , Color
Next Color
For Color = 128 To 255
Colorbac = Color - 128
Line(colorbac , 66) -(colorbac , 131) , Color
Next Color
Wait 2
Box(0 , 0) -(176 , 131) , áĺëűé
Wait 2
Setfont Color8x8
For N = 0 To 22
Color = N
Colorbac = N * 8
Lcdat Colorbac , 0 , Color , Color , áĺëűé
Next N
For N = 0 To 22
Color = N + 22
Colorbac = N * 8
Lcdat Colorbac , 16 , Color , Color , áĺëűé
Next N
For N = 0 To 22
Color = N + 44
Colorbac = N * 8
Lcdat Colorbac , 32 , Color , Color , áĺëűé
Next N
For N = 0 To 22
Color = N + 66
Colorbac = N * 8
Lcdat Colorbac , 48 , Color , Color , áĺëűé
Next N
For N = 0 To 22
Color = N + 88
Colorbac = N * 8
Lcdat Colorbac , 64 , Color , Color , áĺëűé
Next N
For N = 0 To 22
Color = N + 110
Colorbac = N * 8
Lcdat Colorbac , 88 , Color , Color , áĺëűé
Next N
For N = 0 To 22
Color = N + 132
Colorbac = N * 8
Lcdat Colorbac , 112 , Color , Color , áĺëűé
Next N
Wait 5
For N = 0 To 22
Color = 22 * 8
Color = N + Color
Colorbac = N * 8
Lcdat Colorbac , 0 , Color , Color , áĺëűé
Next N
For N = 0 To 22
Color = 22 * 9
Color = N + Color
Colorbac = N * 8
Lcdat Colorbac , 24 , Color , Color , áĺëűé
Next N
For N = 0 To 22
Color = 22 * 10
Color = N + Color
Colorbac = N * 8
Lcdat Colorbac , 48 , Color , Color , áĺëűé
Next N
For N = 0 To 22
Color = 22 * 11
Color = N + Color
Colorbac = N * 8
Lcdat Colorbac , 72 , Color , Color , áĺëűé
Next N
Line(10 , 10) -(170 , 130) , Color
Line(110 , 1) -(1 , 110) , Colorbac
Pset 32 , 110 , Color
Waitms 1000
Line(65 , 0) -(65 , 130) , Black
Line(10 , 40) -(30 , 40) , White
Wait 2
Showpic 0 , 1 , Plaatje 'ęŕđňčíęŕ
Wait 2
'
Setfont Color8x8
Lcdat 0 , 0 , "Sergey Chernikov" , Red , Yellow
Wait 1
Waitms 1000
'select a font
Setfont Color16x16
'and show some text
Lcdat 8 , 0 , "12345678" , Blue , Yellow
Wait 2
Do
Waitms 1000
Circle(30 , 30) , 20 , Blue
Waitms 100
Circle(30 , 30) , 21 , Yellow
Waitms 100
Circle(30 , 30) , 22 , Blue
Waitms 100
Circle(30 , 30) , 23 , Yellow
Waitms 100
Circle(30 , 30) , 24 , Blue
Waitms 100
Circle(30 , 30) , 25 , Yellow
Waitms 100
Circle(30 , 30) , 26 , Blue
Waitms 1000
'
'make a box
Box(1 , 1) -(131 , 131) , áĺëűé
Waitms 500
Box(1 , 1) -(131 , 131) , Yellow
Waitms 500
Box(1 , 1) -(131 , 131) , Red
Waitms 500
'Box(1 , 1) -(131 , 131) , 43981
Waitms 500
Box(0 , 0) -(10 , 131) , Black
'Waitms 100
Box(11 , 0) -(20 , 131) , Brown
'Waitms 100
Box(21 , 0) -(30 , 131) , Darkred
'Waitms 100
Box(31 , 0) -(40 , 131) , Red
'Waitms 100
Box(41 , 0) -(50 , 171) , Orange
'Waitms 100
Box(51 , 0) -(60 , 131) , Yellow
'Waitms 100
Box(61 , 0) -(70 , 131) , Brightgreen
'Waitms 100
Box(71 , 0) -(80 , 131) , Green
'Waitms 100
Box(81 , 0) -(90 , 131) , Darkgreen
'Waitms 100
Box(91 , 0) -(100 , 131) , Brightblue
'Waitms 100
Box(101 , 0) -(110 , 131) , Blue
'Waitms 100
Box(111 , 0) -(120 , 131) , Darkblue
'Waitms 100
Box(121 , 0) -(130 , 131) , Violett
'Waitms 100
Box(131 , 0) -(140 , 131) , White
Wait 10
Box(0 , 0) -(175 , 131) , Brightblue
Box(10 , 10) -(165 , 121) , Green
Box(12 , 12) -(163 , 119) , Brightblue
Wait 2
Line(12 , 12) -(163 , 119) , Red
Line(11 , 120) -(164 , 11) , Red
Wait 2
Cls
Box(15 , 20) -(170 , 130) , Red
Wait 2
Cls
Box(30 , 105) -(40 , 115) , Green
Wait 1
'set some pixels
Pset 32 , 110 , White
Pset 38 , 110 , White
Pset 35 , 112 , Blue
Wait 2
Pset 35 , 112 , Blue
Cls
Wait 1
Loop
End
Plaatje:
$bgf "mcse.bgc"
$include "color8x8.font"
$include "color16x16.font"