top of page

Search Results

285 results found with an empty search

  • Vector Graphics Test

    < Back Vector Graphics Test ​ Program --- Vector Graphics Test Program. --- prog_vars = d/count 0 d/xpos 0 d/ypos 0 d/text_to_show "Jack is a very good boy" prog_vars. prog_start = print "Program Start" gvr b1 0 100 pclear ptl 100 200 "Some Text 100 200 /text_to_show" ptl 0 0 "Letter Position 0 0 /text_to_show" ptl a a "Letter Position a a /text_to_show" ptl z z "ZZ Letter Position z z /text_to_show" ptl m i "Letter Position m i /text_to_show" -- Rectangle pr 80 123 100 100 ^id=r1^width=2^fill=red^color=blue^round=2^ pr 180 223 100 50 ^id=r1^width=5^fill=lime^color=brown^round=2^ -- exitnow -- Button pb j j ^name=d1 2^press=d1 1|d2 1^rel=doff^ pb o j ^name=c1 2^press=c1 1|c2 1^rel=coff^ pb l l ^name=Clear^press=pclear^ -- Circle pcr 140 300 20 ^id=c8^width=2^fill=red^color=blue^ -- Vertical Line pvl b 100 60 ^width=20^color=blue^lcap=rect^ pvl e 100 60 ^width=20^color=blue^lcap=round^ pvl i 100 60 ^width=20^color=blue^lcap=square^ -- Horizonbtal Line phl i j 60 ^width=20^color=blue^lcap=rect^ phl i k 60 ^width=20^color=blue^lcap=round^ -- Button pb j j ^name=d1 2^press=d1 1|d2 1^rel=doff^ -- ptl with Tags ptl 100 100 ^size=24^font=Arial^ "Some Text 100 100" prog_start. prog_loop = -- main program loop print "Count /count" -- Display B1 pvl j 100 /b1 ^id=b1^width=20^color=yellow^lcap=rect^ ptl j 120 ^id=tb1^ "b1 /b1" any /count < 20 -> inc /count ptl /xpos /ypos "Count /count" -- Circle pcr 140 300 /ypos ^id=c8^width=2^fill=red^color=blue^ inc /xpos 25 inc /ypos 25 enda. any /count >= 200 -> exitprog prog_loop. prog_stop = print "Bye" prog_stop.

  • Personal Weather Station

    < Back Personal Weather Station This is a basic weather station that measures air temperature and relative humidity. Program --- Personal Weather Station --- prog_vars = d/count 0 d/air_temp 0.0 d/rh 0 prog_vars. prog_start = pclear print "Weather Station Program Start" i2con d1000 f2c pb 100 50 ^n=Quit^p=exitprog^ ptl 20 0 ^ts=24^ "My Weather Station" prog_start. prog_loop = -- main program loop /air_temp /35 /rh /36 ptl 100 100 ^ts=24^tc=red^ "Air Temp /air_temp" ptl 100 150 ^ts=24^tc=blue^ "RH /rh" prog_loop. prog_stop = print "Bye" prog_stop.

  • Flash USER LED Using a Recursive Task

    < Back Flash USER LED Using a Recursive Task This is an example of how to use recursion as a loop in a program. The program will call a task called flash_user_led and once there the task calls itself 10 times resulting in the USER LED flashing random colors. Once the LED has flashed 10 times the skipout command is called and the program will end. Program --- Flash USER LED using a recursive task. --- prog_vars = d/color 0 d/flash_count 0 prog_vars. prog_start = pclear print "Recursive flash program." prog_start. prog_loop = flash_user_led 5 exitprog prog_loop. flash_user_led /start_count 0 = -- Get a new random color rand 0 15 -> /color -- Set USER LED to the color l1 /color "Flash no /flash_count color /color start /start_count" inc /flash_count -- Check if we should stop any /flash_count >= 10 -> "Time to Stop" skipout enda. -- Recursively call again flash_user_led 8 "ERROR WE SHOULD NOT BE HERE" flash_user_led. prog_stop = print "Exit Twinkle" prog_stop.

  • Projects - Electronic Dice

    < Back Electronic Dice In this project, you will build on the Rainbow LED project by turning the JackBord into a dice. Using the random function to generate a number and assigning each LED a value (all 5 lit up represents six) makes a very simple electronic dice. Just like the Rainbow LED Display project, we use the same circuit and connect the TOP LEDs to Port A on the JackBord. This time we control the LEDs via a program rather than the command line. This means that we don’t have to manually enter commands every time we want the LEDs to light up, but the program also allows us to give the LEDs a practical function which is, in this case, giving a number between 1 and 6. PDF INSTRUCTIONS Project Gallery

  • Projects - Soccer Robot

    < Back Soccer Robot In this project, you will use your JackBord to play soccer! We do this by turning an ice cream container into a scoop or a foot so the JackBord can push a ball from one point to another. This project also includes different ways you can play and different challenges you can implement in order to make driving and scoring more difficult for your robot. One of these challenges includes programming the buttons on the DRIVE page on the dashboard, and then using these buttons to control your soccer robot. PDF INSTRUCTIONS Project Gallery

bottom of page