' This code is for the Parallax S2 robot and can make the robot to wtile Words ' The code supports Pen_Up and Pen_Down commands if the robot has a Pen lifter ' However you can use it without changes with an ordinary S2 robot without pen Lifter. ' Author: Nikos Giannakopoulos (NikosG) ver 10 April 2012 ' The code is based on "Write Saints" code from Rich Harman (W9FGO) ' Supports letters with Single line form. (Type ISOCT) ' The code also writes DIGITS: 1,2,3,4,5,6,7,8,9,0 and SPACE Con _clkmode = xtal1 + pll16x _xinfreq = 5_000_000 _SIZE = 1 ' The size of the letters (you can Play with it) S_B_L = 15 ' The space between two sequential letters up = 2080 ' The pulse for the Pen servo in order to lift Up the pen (optional) down = 1600 ' The pulse for the Pen servo in order to lift Down the pen (optional) Pen = 5 ' The pin of the Pen servo (optional) VAR long LET_POS Word Let_width OBJ SERVO : "Servo32v7" s2 : "s2" PUB Main SERVO.Start SERVO.Set(pen,up) s2.start s2.start_motors s2.set_speed(7) s2.here_is(0, -202) LET_POS := 0 ' Supposing you want your S2 to write "Parallax S2" you must write compete the following ' lines: (write every letter in a new line and add the ending "_big" for Capital letters ' and "_small" for Lower letters. ' In order to scribble digits,write "one" for 1, "two" for 2, ......"zero" for 0. ' Have Fun!!!! repeat repeat until s2.button_press waitcnt(clkfreq + cnt) s2.move_to(0, 0) P_big '---------------------- the S2 writes: "Parallax S2" ------------------ a_small r_small a_small l_small l_small a_small x_small space S_big two '------------------ add the letters for your sentences here. s2.end_path '----------------------------------------------------------------------------------- '--------------------------------Letters: A,a,B,b.....,X,x,Y,y,Z,z --------------- '----------------------------------------------------------------------------------- PUB A_big let_width :=123* _size S2.move_to(0*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(63*_SIZE+LET_POS, _SIZE*174) S2.move_to(123*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up S2.move_to(108*_SIZE+LET_POS, _SIZE*51) pen_down S2.begin_path S2.move_to(21*_SIZE+LET_POS, _SIZE*51) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB a_small let_width :=87* _size S2.move_to(105*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(48*_SIZE+LET_POS, _SIZE*0) S2.arc_to(48*_SIZE+LET_POS, _SIZE*65,-33*_SIZE) S2.move_to(105*_SIZE+LET_POS, _SIZE*65) S2.move_to(105*_SIZE+LET_POS, _SIZE*87) S2.arc_to(69*_SIZE+LET_POS, _SIZE*120,31*_SIZE) S2.move_to(30*_SIZE+LET_POS, _SIZE*120) S2.end_path pen_up S2.move_to(105*_SIZE+LET_POS, _SIZE*65) pen_down S2.begin_path S2.move_to(105*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB B_big let_width :=105* _size S2.move_to(9*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(9*_SIZE+LET_POS, _SIZE*177) S2.move_to(69*_SIZE+LET_POS, _SIZE*177) S2.arc_to(69*_SIZE+LET_POS, _SIZE*98,-40*_SIZE) S2.move_to(9*_SIZE+LET_POS, _SIZE*98) S2.move_to(69*_SIZE+LET_POS, _SIZE*98) S2.arc_to(69*_SIZE+LET_POS, _SIZE*0,-49*_SIZE) S2.move_to(9*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB b_small let_width :=87* _size S2.move_to(18*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(18*_SIZE+LET_POS, _SIZE*176) S2.end_path pen_up S2.move_to(18*_SIZE+LET_POS, _SIZE*120) pen_down S2.begin_path S2.move_to(75*_SIZE+LET_POS, _SIZE*120) S2.arc_to(105*_SIZE+LET_POS, _SIZE*87,-32*_SIZE) S2.move_to(105*_SIZE+LET_POS, _SIZE*33) S2.arc_to(75*_SIZE+LET_POS, _SIZE*0,-32*_SIZE) S2.move_to(18*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB C_big let_width :=84* _size S2.move_to(102*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(60*_SIZE+LET_POS, _SIZE*0) S2.arc_to(18*_SIZE+LET_POS, _SIZE*39,-59*_SIZE) S2.move_to(18*_SIZE+LET_POS, _SIZE*138) S2.arc_to(60*_SIZE+LET_POS, _SIZE*177,-59*_SIZE) S2.move_to(102*_SIZE+LET_POS, _SIZE*177) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB c_small let_width :=63* _size S2.move_to(93*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(60*_SIZE+LET_POS, _SIZE*0) S2.arc_to(30*_SIZE+LET_POS, _SIZE*30,-41*_SIZE) S2.move_to(30*_SIZE+LET_POS, _SIZE*93) S2.arc_to(60*_SIZE+LET_POS, _SIZE*137,-61*_SIZE) S2.move_to(93*_SIZE+LET_POS, _SIZE*137) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB D_big let_width :=105* _size S2.move_to(9*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(9*_SIZE+LET_POS, _SIZE*177) S2.move_to(63*_SIZE+LET_POS, _SIZE*177) S2.arc_to(114*_SIZE+LET_POS, _SIZE*126,-77*_SIZE) S2.move_to(114*_SIZE+LET_POS, _SIZE*51) S2.arc_to(63*_SIZE+LET_POS, _SIZE*0,-77*_SIZE) S2.move_to(9*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB d_small let_width :=84* _size S2.move_to(105*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(54*_SIZE+LET_POS, _SIZE*0) S2.arc_to(24*_SIZE+LET_POS, _SIZE*30,-41*_SIZE) S2.move_to(24*_SIZE+LET_POS, _SIZE*93) S2.arc_to(54*_SIZE+LET_POS, _SIZE*120,-37*_SIZE) S2.move_to(105*_SIZE+LET_POS, _SIZE*120) S2.end_path pen_up S2.move_to(105*_SIZE+LET_POS, _SIZE*176) pen_down S2.begin_path S2.move_to(105*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB E_big let_width :=84* _size S2.move_to(102*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(20*_SIZE+LET_POS, _SIZE*0) S2.move_to(20*_SIZE+LET_POS, _SIZE*177) S2.move_to(102*_SIZE+LET_POS, _SIZE*177) S2.end_path pen_up S2.move_to(83*_SIZE+LET_POS, _SIZE*98) pen_down S2.begin_path S2.move_to(20*_SIZE+LET_POS, _SIZE*98) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB e_small let_width :=87* _size S2.move_to(104*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(51*_SIZE+LET_POS, _SIZE*0) S2.arc_to(21*_SIZE+LET_POS, _SIZE*30,-41*_SIZE) S2.move_to(21*_SIZE+LET_POS, _SIZE*89) S2.arc_to(105*_SIZE+LET_POS, _SIZE*89,-43*_SIZE) S2.move_to(105*_SIZE+LET_POS, _SIZE*57) S2.move_to(21*_SIZE+LET_POS, _SIZE*57) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB F_big let_width :=84* _size S2.move_to(18*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(18*_SIZE+LET_POS, _SIZE*177) S2.move_to(102*_SIZE+LET_POS, _SIZE*177) S2.end_path pen_up S2.move_to(102*_SIZE+LET_POS, _SIZE*98) pen_down S2.begin_path S2.move_to(18*_SIZE+LET_POS, _SIZE*98) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB f_small let_width :=63* _size S2.move_to(56*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(56*_SIZE+LET_POS, _SIZE*141) S2.arc_to(93*_SIZE+LET_POS, _SIZE*177,-42*_SIZE) S2.end_path pen_up S2.move_to(93*_SIZE+LET_POS, _SIZE*116) pen_down S2.begin_path S2.move_to(30*_SIZE+LET_POS, _SIZE*116) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB G_big let_width :=105* _size S2.move_to(78*_SIZE+LET_POS, _SIZE*102) pen_down s2.begin_path S2.move_to(114*_SIZE+LET_POS, _SIZE*102) S2.move_to(114*_SIZE+LET_POS, _SIZE*0) S2.move_to(53*_SIZE+LET_POS, _SIZE*0) S2.arc_to(9*_SIZE+LET_POS, _SIZE*42,-67*_SIZE) S2.move_to(9*_SIZE+LET_POS, _SIZE*92) S2.arc_to(53*_SIZE+LET_POS, _SIZE*177,-163*_SIZE) S2.move_to(114*_SIZE+LET_POS, _SIZE*177) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB g_small let_width :=78* _size S2.move_to(104*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(48*_SIZE+LET_POS, _SIZE*0) S2.arc_to(20*_SIZE+LET_POS, _SIZE*29,-37*_SIZE) S2.move_to(20*_SIZE+LET_POS, _SIZE*93) S2.arc_to(48*_SIZE+LET_POS, _SIZE*120,-35*_SIZE) S2.move_to(104*_SIZE+LET_POS, _SIZE*120) S2.move_to(104*_SIZE+LET_POS, _SIZE*-18) S2.arc_to(69*_SIZE+LET_POS, _SIZE*-56,-58*_SIZE) S2.move_to(30*_SIZE+LET_POS, _SIZE*-56) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB H_big let_width :=105* _size S2.move_to(9*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(9*_SIZE+LET_POS, _SIZE*174) S2.move_to(9*_SIZE+LET_POS, _SIZE*96) S2.move_to(114*_SIZE+LET_POS, _SIZE*99) S2.move_to(114*_SIZE+LET_POS, _SIZE*174) S2.move_to(114*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB h_small let_width :=84* _size S2.move_to(20*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(20*_SIZE+LET_POS, _SIZE*176) S2.end_path pen_up S2.move_to(20*_SIZE+LET_POS, _SIZE*120) pen_down S2.begin_path S2.move_to(74*_SIZE+LET_POS, _SIZE*120) S2.arc_to(104*_SIZE+LET_POS, _SIZE*87,-44*_SIZE) S2.move_to(104*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB I_big let_width :=12* _size S2.move_to(63*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(63*_SIZE+LET_POS, _SIZE*174) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB i_small let_width :=12* _size S2.move_to(63*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(63*_SIZE+LET_POS, _SIZE*117) S2.end_path pen_up S2.move_to(63*_SIZE+LET_POS, _SIZE*162) pen_down S2.begin_path S2.move_to(63*_SIZE+LET_POS, _SIZE*176) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB J_big let_width :=63* _size S2.move_to(30*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(57*_SIZE+LET_POS, _SIZE*0) S2.arc_to(93*_SIZE+LET_POS, _SIZE*33,69*_SIZE) S2.move_to(93*_SIZE+LET_POS, _SIZE*176) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB j_small let_width :=42* _size S2.move_to(50*_SIZE+LET_POS, _SIZE*-56) pen_down s2.begin_path S2.arc_to(93*_SIZE+LET_POS, _SIZE*-21,56*_SIZE) S2.move_to(93*_SIZE+LET_POS, _SIZE*119) S2.end_path pen_up S2.move_to(93*_SIZE+LET_POS, _SIZE*162) pen_down S2.begin_path S2.move_to(93*_SIZE+LET_POS, _SIZE*176) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB K_big let_width :=102* _size S2.move_to(12*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(12*_SIZE+LET_POS, _SIZE*174) S2.end_path pen_up S2.move_to(12*_SIZE+LET_POS, _SIZE*69) pen_down S2.begin_path S2.move_to(114*_SIZE+LET_POS, _SIZE*174) S2.end_path pen_up S2.move_to(50*_SIZE+LET_POS, _SIZE*113) pen_down S2.begin_path S2.move_to(112*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB k_small let_width :=84* _size S2.move_to(18*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(18*_SIZE+LET_POS, _SIZE*174) S2.end_path pen_up S2.move_to(18*_SIZE+LET_POS, _SIZE*60) pen_down S2.begin_path S2.move_to(102*_SIZE+LET_POS, _SIZE*102) S2.end_path pen_up S2.move_to(63*_SIZE+LET_POS, _SIZE*81) pen_down S2.begin_path S2.move_to(102*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB L_big let_width :=84* _size S2.move_to(102*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(50*_SIZE+LET_POS, _SIZE*0) S2.move_to(50*_SIZE+LET_POS, _SIZE*176) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB l_small let_width :=24* _size S2.move_to(75*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.arc_to(51*_SIZE+LET_POS, _SIZE*18,-31*_SIZE) S2.move_to(51*_SIZE+LET_POS, _SIZE*176) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB M_big let_width :=123* _size S2.move_to(0*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(0*_SIZE+LET_POS, _SIZE*174) S2.move_to(62*_SIZE+LET_POS, _SIZE*75) S2.move_to(123*_SIZE+LET_POS, _SIZE*174) S2.move_to(123*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB m_small let_width :=123* _size S2.move_to(0*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(0*_SIZE+LET_POS, _SIZE*120) S2.move_to(90*_SIZE+LET_POS, _SIZE*120) S2.arc_to(123*_SIZE+LET_POS, _SIZE*90,-58*_SIZE) S2.move_to(123*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up S2.move_to(62*_SIZE+LET_POS, _SIZE*0) pen_down S2.begin_path S2.move_to(62*_SIZE+LET_POS, _SIZE*120) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB N_big let_width :=102* _size S2.move_to(12*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(12*_SIZE+LET_POS, _SIZE*174) S2.move_to(114*_SIZE+LET_POS, _SIZE*0) S2.move_to(114*_SIZE+LET_POS, _SIZE*174) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB n_small let_width :=87* _size S2.move_to(20*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(20*_SIZE+LET_POS, _SIZE*120) S2.move_to(72*_SIZE+LET_POS, _SIZE*120) S2.arc_to(105*_SIZE+LET_POS, _SIZE*87,-48*_SIZE) S2.move_to(105*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB O_big let_width :=105* _size S2.move_to(62*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.arc_to(9*_SIZE+LET_POS, _SIZE*39,-92*_SIZE) S2.move_to(9*_SIZE+LET_POS, _SIZE*137) S2.arc_to(62*_SIZE+LET_POS, _SIZE*177,-95*_SIZE) S2.arc_to(114*_SIZE+LET_POS, _SIZE*137,-95*_SIZE) S2.move_to(114*_SIZE+LET_POS, _SIZE*39) S2.arc_to(62*_SIZE+LET_POS, _SIZE*0,-92*_SIZE) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB o_small let_width :=84* _size S2.move_to(72*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.arc_to(30*_SIZE+LET_POS, _SIZE*33,-34*_SIZE) S2.move_to(30*_SIZE+LET_POS, _SIZE*90) S2.arc_to(72*_SIZE+LET_POS, _SIZE*120,-33*_SIZE) S2.arc_to(114*_SIZE+LET_POS, _SIZE*90,-33*_SIZE) S2.move_to(114*_SIZE+LET_POS, _SIZE*33) S2.arc_to(72*_SIZE+LET_POS, _SIZE*0,-34*_SIZE) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB P_big let_width :=105* _size S2.move_to(9*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(9*_SIZE+LET_POS, _SIZE*177) S2.move_to(66*_SIZE+LET_POS, _SIZE*177) S2.arc_to(66*_SIZE+LET_POS, _SIZE*75,-51*_SIZE) S2.move_to(9*_SIZE+LET_POS, _SIZE*75) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB p_small let_width :=84* _size S2.move_to(20*_SIZE+LET_POS, _SIZE*-54) pen_down s2.begin_path S2.move_to(20*_SIZE+LET_POS, _SIZE*120) S2.move_to(74*_SIZE+LET_POS, _SIZE*120) S2.arc_to(104*_SIZE+LET_POS, _SIZE*87,-44*_SIZE) S2.move_to(104*_SIZE+LET_POS, _SIZE*33) S2.arc_to(74*_SIZE+LET_POS, _SIZE*0,-44*_SIZE) S2.move_to(20*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB Q_big let_width :=120* _size S2.move_to(62*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.arc_to(9*_SIZE+LET_POS, _SIZE*39,-92*_SIZE) S2.move_to(9*_SIZE+LET_POS, _SIZE*137) S2.arc_to(62*_SIZE+LET_POS, _SIZE*177,-95*_SIZE) S2.arc_to(114*_SIZE+LET_POS, _SIZE*137,-95*_SIZE) S2.move_to(114*_SIZE+LET_POS, _SIZE*39) S2.arc_to(62*_SIZE+LET_POS, _SIZE*0,-92*_SIZE) S2.end_path pen_up S2.move_to(78*_SIZE+LET_POS, _SIZE*42) pen_down S2.begin_path S2.move_to(131*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB q_small let_width :=84* _size S2.move_to(104*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(50*_SIZE+LET_POS, _SIZE*0) S2.arc_to(20*_SIZE+LET_POS, _SIZE*30,-44*_SIZE) S2.move_to(19*_SIZE+LET_POS, _SIZE*93) S2.arc_to(50*_SIZE+LET_POS, _SIZE*120,-41*_SIZE) S2.move_to(104*_SIZE+LET_POS, _SIZE*120) S2.move_to(104*_SIZE+LET_POS, _SIZE*-54) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB R_big let_width :=105* _size S2.move_to(9*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(9*_SIZE+LET_POS, _SIZE*177) S2.move_to(66*_SIZE+LET_POS, _SIZE*177) S2.arc_to(66*_SIZE+LET_POS, _SIZE*75,-51*_SIZE) S2.move_to(9*_SIZE+LET_POS, _SIZE*75) S2.move_to(74*_SIZE+LET_POS, _SIZE*75) S2.move_to(111*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB r_small let_width :=66* _size S2.move_to(27*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(27*_SIZE+LET_POS, _SIZE*120) S2.move_to(93*_SIZE+LET_POS, _SIZE*120) S2.move_to(93*_SIZE+LET_POS, _SIZE*96) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB S_big let_width :=105* _size S2.move_to(11*_SIZE+LET_POS, _SIZE*18) pen_down s2.begin_path S2.arc_to(72*_SIZE+LET_POS, _SIZE*0,173*_SIZE) S2.arc_to(90*_SIZE+LET_POS, _SIZE*81,43*_SIZE) S2.move_to(30*_SIZE+LET_POS, _SIZE*101) S2.arc_to(51*_SIZE+LET_POS, _SIZE*177,-40*_SIZE) S2.arc_to(102*_SIZE+LET_POS, _SIZE*161,-121*_SIZE) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB S_small let_width :=105* _size S2.move_to(21*_SIZE+LET_POS, _SIZE*12) pen_down s2.begin_path S2.arc_to(66*_SIZE+LET_POS, _SIZE*0,114*_SIZE) S2.arc_to(102*_SIZE+LET_POS, _SIZE*15,29*_SIZE) S2.arc_to(90*_SIZE+LET_POS, _SIZE*51,25*_SIZE) S2.move_to(33*_SIZE+LET_POS, _SIZE*72) S2.arc_to(48*_SIZE+LET_POS, _SIZE*120,-26*_SIZE) S2.arc_to(90*_SIZE+LET_POS, _SIZE*108,-81*_SIZE) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB T_big let_width :=99* _size S2.move_to(62*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(62*_SIZE+LET_POS, _SIZE*177) S2.end_path pen_up S2.move_to(12*_SIZE+LET_POS, _SIZE*177) pen_down S2.begin_path S2.move_to(111*_SIZE+LET_POS, _SIZE*177) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB t_small let_width :=63* _size S2.move_to(51*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(51*_SIZE+LET_POS, _SIZE*174) S2.end_path pen_up S2.move_to(30*_SIZE+LET_POS, _SIZE*117) pen_down S2.begin_path S2.move_to(93*_SIZE+LET_POS, _SIZE*117) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB U_big let_width :=105* _size S2.move_to(9*_SIZE+LET_POS, _SIZE*174) pen_down s2.begin_path S2.move_to(9*_SIZE+LET_POS, _SIZE*42) S2.arc_to(114*_SIZE+LET_POS, _SIZE*42,54*_SIZE) S2.move_to(114*_SIZE+LET_POS, _SIZE*174) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB u_small let_width :=84* _size S2.move_to(20*_SIZE+LET_POS, _SIZE*119) pen_down s2.begin_path S2.move_to(20*_SIZE+LET_POS, _SIZE*30) S2.arc_to(48*_SIZE+LET_POS, _SIZE*0,45*_SIZE) S2.move_to(104*_SIZE+LET_POS, _SIZE*0) S2.move_to(104*_SIZE+LET_POS, _SIZE*119) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB V_big let_width :=123* _size S2.move_to(3*_SIZE+LET_POS, _SIZE*174) pen_down s2.begin_path S2.move_to(65*_SIZE+LET_POS, _SIZE*0) S2.move_to(125*_SIZE+LET_POS, _SIZE*174) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB v_small let_width :=84* _size S2.move_to(20*_SIZE+LET_POS, _SIZE*120) pen_down s2.begin_path S2.move_to(62*_SIZE+LET_POS, _SIZE*0) S2.move_to(104*_SIZE+LET_POS, _SIZE*120) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB W_big let_width :=162* _size S2.move_to(3*_SIZE+LET_POS, _SIZE*174) pen_down s2.begin_path S2.move_to(45*_SIZE+LET_POS, _SIZE*0) S2.move_to(84*_SIZE+LET_POS, _SIZE*126) S2.move_to(122*_SIZE+LET_POS, _SIZE*0) S2.move_to(161*_SIZE+LET_POS, _SIZE*174) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB w_small let_width :=123* _size S2.move_to(0*_SIZE+LET_POS, _SIZE*120) pen_down s2.begin_path S2.move_to(33*_SIZE+LET_POS, _SIZE*0) S2.move_to(60*_SIZE+LET_POS, _SIZE*117) S2.move_to(90*_SIZE+LET_POS, _SIZE*0) S2.move_to(120*_SIZE+LET_POS, _SIZE*120) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB X_big let_width :=120* _size S2.move_to(0*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(120*_SIZE+LET_POS, _SIZE*177) S2.end_path pen_up S2.move_to(0*_SIZE+LET_POS, _SIZE*177) pen_down S2.begin_path S2.move_to(120*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB x_small let_width :=87* _size S2.move_to(18*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(102*_SIZE+LET_POS, _SIZE*120) S2.end_path pen_up S2.move_to(18*_SIZE+LET_POS, _SIZE*120) pen_down S2.begin_path S2.move_to(102*_SIZE+LET_POS, _SIZE*0) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB Y_big let_width :=123* _size S2.move_to(60*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(60*_SIZE+LET_POS, _SIZE*87) S2.move_to(120*_SIZE+LET_POS, _SIZE*177) S2.end_path pen_up S2.move_to(0*_SIZE+LET_POS, _SIZE*177) pen_down S2.begin_path S2.move_to(60*_SIZE+LET_POS, _SIZE*87) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB y_small let_width :=81* _size S2.move_to(21*_SIZE+LET_POS, _SIZE*-57) pen_down s2.begin_path S2.move_to(45*_SIZE+LET_POS, _SIZE*-57) S2.move_to(99*_SIZE+LET_POS, _SIZE*120) S2.end_path pen_up S2.move_to(21*_SIZE+LET_POS, _SIZE*120) pen_down S2.begin_path S2.move_to(62*_SIZE+LET_POS, _SIZE*5) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB Z_big let_width :=102* _size S2.move_to(111*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(9*_SIZE+LET_POS, _SIZE*0) S2.move_to(111*_SIZE+LET_POS, _SIZE*177) S2.move_to(12*_SIZE+LET_POS, _SIZE*177) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB z_small let_width :=87* _size S2.move_to(105*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(21*_SIZE+LET_POS, _SIZE*0) S2.move_to(108*_SIZE+LET_POS, _SIZE*120) S2.move_to(24*_SIZE+LET_POS, _SIZE*120) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L '----------------------------------------------------------------------------------- '-----------------------------------------DIGITS: 1,2,3,4,5,6,7,8,9,0--------------- '----------------------------------------------------------------------------------- PUB one let_width :=39 S2.move_to(60*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(60*_SIZE+LET_POS, _SIZE*174) S2.move_to(24*_SIZE+LET_POS, _SIZE*135) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB two let_width :=84 S2.move_to(81*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(3*_SIZE+LET_POS, _SIZE*0) S2.move_to(78*_SIZE+LET_POS, _SIZE*114) S2.arc_to(3*_SIZE+LET_POS, _SIZE*147,44*_SIZE) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB three let_width :=84 S2.move_to(3*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(45*_SIZE+LET_POS, _SIZE*0) S2.arc_to(45*_SIZE+LET_POS, _SIZE*98,53*_SIZE) S2.move_to(21*_SIZE+LET_POS, _SIZE*98) S2.end_path pen_up S2.move_to(45*_SIZE+LET_POS, _SIZE*98) pen_down S2.begin_path S2.arc_to(45*_SIZE+LET_POS, _SIZE*174,39*_SIZE) S2.move_to(3*_SIZE+LET_POS, _SIZE*174) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB four let_width :=102 S2.move_to(69*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(69*_SIZE+LET_POS, _SIZE*78) S2.end_path pen_up S2.move_to(99*_SIZE+LET_POS, _SIZE*41) pen_down S2.begin_path S2.move_to(0*_SIZE+LET_POS, _SIZE*41) S2.move_to(41*_SIZE+LET_POS, _SIZE*174) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB five let_width :=84 S2.move_to(18*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(60*_SIZE+LET_POS, _SIZE*0) S2.arc_to(60*_SIZE+LET_POS, _SIZE*96,50*_SIZE) S2.move_to(15*_SIZE+LET_POS, _SIZE*96) S2.move_to(15*_SIZE+LET_POS, _SIZE*176) S2.move_to(87*_SIZE+LET_POS, _SIZE*176) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB six let_width :=84 S2.move_to(54*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.arc_to(15*_SIZE+LET_POS, _SIZE*33,-33*_SIZE) S2.move_to(15*_SIZE+LET_POS, _SIZE*96) S2.arc_to(72*_SIZE+LET_POS, _SIZE*173,-83*_SIZE) S2.end_path pen_up S2.move_to(15*_SIZE+LET_POS, _SIZE*96) pen_down S2.begin_path S2.move_to(60*_SIZE+LET_POS, _SIZE*96) S2.arc_to(93*_SIZE+LET_POS, _SIZE*66,-25*_SIZE) S2.move_to(93*_SIZE+LET_POS, _SIZE*39) S2.arc_to(54*_SIZE+LET_POS, _SIZE*0,-35*_SIZE) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB seven let_width :=84 S2.move_to(54*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.move_to(93*_SIZE+LET_POS, _SIZE*176) S2.move_to(12*_SIZE+LET_POS, _SIZE*176) S2.move_to(12*_SIZE+LET_POS, _SIZE*156) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB eight let_width :=105 S2.move_to(51*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.arc_to(15*_SIZE+LET_POS, _SIZE*30,-29*_SIZE) S2.move_to(15*_SIZE+LET_POS, _SIZE*66) S2.arc_to(51*_SIZE+LET_POS, _SIZE*98,-30*_SIZE) S2.arc_to(51*_SIZE+LET_POS, _SIZE*176,-39*_SIZE) S2.arc_to(51*_SIZE+LET_POS, _SIZE*98,-39*_SIZE) S2.arc_to(90*_SIZE+LET_POS, _SIZE*66,-33*_SIZE) S2.move_to(90*_SIZE+LET_POS, _SIZE*30) S2.arc_to(51*_SIZE+LET_POS, _SIZE*0,-31*_SIZE) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB nine let_width :=111 S2.move_to(33*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.arc_to(90*_SIZE+LET_POS, _SIZE*78,84*_SIZE) S2.move_to(48*_SIZE+LET_POS, _SIZE*78) S2.arc_to(15*_SIZE+LET_POS, _SIZE*108,-25*_SIZE) S2.move_to(15*_SIZE+LET_POS, _SIZE*138) S2.arc_to(54*_SIZE+LET_POS, _SIZE*176,-32*_SIZE) S2.arc_to(90*_SIZE+LET_POS, _SIZE*138,-30*_SIZE) S2.move_to(90*_SIZE+LET_POS, _SIZE*78) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L PUB zero let_width :=81 S2.move_to(51*_SIZE+LET_POS, _SIZE*0) pen_down s2.begin_path S2.arc_to(15*_SIZE+LET_POS, _SIZE*72,-74*_SIZE) S2.arc_to(15*_SIZE+LET_POS, _SIZE*108,-91*_SIZE) S2.arc_to(51*_SIZE+LET_POS, _SIZE*176,-67*_SIZE) S2.arc_to(90*_SIZE+LET_POS, _SIZE*108,-69*_SIZE) S2.arc_to(90*_SIZE+LET_POS, _SIZE*72,-91*_SIZE) S2.arc_to(51*_SIZE+LET_POS, _SIZE*0,-76*_SIZE) S2.end_path pen_up LET_POS := Let_pos + Let_width + S_B_L '----------------------------------------------------------------------------------- '-----------------------------------------Special Charachters: --------------- '----------------------------------------------------------------------------------- PUB space let_width :=100 * _size LET_POS := Let_pos + Let_width + S_B_L* _size '-------------------------------------------------------------------- Pub pen_up repeat while s2.moving servo.set(pen, up) ' waitcnt(clkfreq/3 + cnt) Pub pen_down repeat while s2.moving servo.set(pen, down) waitcnt(clkfreq/3 + cnt)